您现在的位置是:首页 > 其他

php56版本部分ajax错误HTTP_RAW_POST_DATA is deprecated头部错误原因

李清波2017-07-30其他


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配置文件,找到以下代码

blob.png


;always_populate_raw_post_data = -1

改成

always_populate_raw_post_data = -1




评论