php5.6 的post方法废弃,如何使用?
程序员文章站
2022-06-14 13:05:58
...
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://php.net/manual/zh/reserved.variables.httprawpostdata.php
$_POST
使用这个代替:
file_get_contents('php://input');
参考: http://blog.csdn.net/fdipzone/article/details/40098169
上一篇: 可否帮忙写一个单页页的PHP采集程序,并附上实例,该怎么解决
下一篇: MySQL备份原理详解
推荐阅读
-
压缩宝如何安装激活使用?图片视频压缩软件获取终身授权的方法
-
Win7虚拟磁盘如何使用?Win7使用虚拟磁盘的方法
-
视频如何实现批量压缩?使用迅捷压缩批量压缩视频的方法
-
Total Uninstall 卸载软件的使用方法以及Total Uninstall如何批量卸载
-
铁路12306如何使用积分兑换车票?铁路12306使用积分兑换车票的方法
-
php使用socket post数据到其它web服务器的方法
-
迅捷去水印软件如何使用?图片视频去水印的方法介绍
-
如何将视频进行多段剪切?使用乐秀APP剪切视频的方法介绍
-
如何使用流量精灵 流量精灵的使用图文方法介绍
-
淘宝合合卡如何使用 淘宝合合卡的使用方法分享