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 0
意思是说:
$HTTP_RAW_POST_DATA
不建议使用了,未来的PHP将移除这个变量如果你需要绕过这个警告(也就是解决方案),可以在
php.ini
中设置always_populate_raw_post_data = -1
并且使用
$str = file_get_contents('php://input');
这个来读取就好了$HTTP_RAW_POST_DATA
超级变量在已经被弃用,请在php.ini
配置文件中把l
改为-1并用php://input
替换超级变量$HTTP_RAW_POST_DATA
要不咱先看下翻译?
http://translate.google.cn/