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

相關文章
相關標籤/搜索