解决Warning: Cannot modify header information - headers already sent by ......

xiaoxiao2021-03-01  15

解决Warning: Cannot modify header information - headers already sent by ......

前几天装了个php的大头贴系统测试,发现报错Warning: Cannot modify header information - headers already sent by ...... 今天又装openads,还是出现这个问题。怒了。上网找了半天,有人说要在文件开头写上 ob_start(); 失败。 后来打开 php.ini 然后把 output_buffering 设为 on 。重起appache,OK。看来这才是解决办法。 
转载请注明原文地址: https://www.6miu.com/read-3200244.html

最新回复(0)