php 错误日志提示的问题 大神帮我解决一下
黄舟
黄舟 2017-04-10 18:05:21
0
3
294

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

répondre à tous(3)
黄舟

意思是说:

$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

Peter_Zhu

要不咱先看下翻译?
http://translate.google.cn/

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!