php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0

php5.6ajax报错php

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 0ajax

 

Warning: Cannot modify header information - headers already sent in Unknown on line 0post

 

解决方法:

打开php.ini的配置文件,找到如下代码this

always_populate_raw_post_data = -1

把分号去掉便可。spa

相关文章
相关标签/搜索