您好,欢迎访问一九零五行业门户网

php5.6 的post方法废弃,如何使用?

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
其它类似信息

推荐信息