php错误记录
访问PHP文件出现错误
Warning: Cannot modify header information - headers already sent by
解决方案:
1. header之前代码出错,PHP自动输出了提示语句。这种情况找出错误并解决即可,或者直接error_reporting(0)屏蔽错误输出。
2. PHP文件是UTF-8 BOM。这种情况可使用editplus之类编辑器将BOM去掉
3. header之前有其他的输出
php错误记录
访问PHP文件出现错误
Warning: Cannot modify header information - headers already sent by
解决方案:
1. header之前代码出错,PHP自动输出了提示语句。这种情况找出错误并解决即可,或者直接error_reporting(0)屏蔽错误输出。
2. PHP文件是UTF-8 BOM。这种情况可使用editplus之类编辑器将BOM去掉
3. header之前有其他的输出