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

把分号去掉即可。

上一篇:Java基础92 MySQL插入当前系统时间


下一篇:006、MySQL取当前系统时间