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
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
意思是说:
$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/