php56版本部分ajax错误HTTP_RAW_POST_DATA is deprecated头部错误原因
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
去掉前面的分号注释
always_populate_raw_post_data = -1