PHP 接口,使用 ajax post方式提交數據的時候報錯: php
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.ajax
解決方法:在php.ini中找到 always_populate_raw_post_data,而後把行的註釋 ‘;’ 去掉。post