php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0(
Posted 倒霉的大熊
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0(相关的知识,希望对你有一定的参考价值。
php5.6ajax报错
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data‘ to ‘-1‘ in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
解决方法:
打开php.ini的配置文件,找到以下代码
always_populate_raw_post_data = -1
把分号去掉即可。
以上是关于php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0(的主要内容,如果未能解决你的问题,请参考以下文章
SSL/TLS 操作失败 PHP5.6 - curl-ca-bundle.crt & cacert.pem
MysqL5.7在使用mysqldump命令备份数据库报错:mysqldump: [Warning] Using a password on the command line interface ca