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.
我只是用了POST方法提交 并没有用到 $HTTP_RAW_POST_DATA 。 只是书上的一个例子。
“$HTTP_RAW_POST_DATA”包含原生的POST数据。
但该特性从php5.6.0开始已不赞成使用;php7.0.0开始,该特性被移除。
可以使用file_get_contents('php://input')代替。
楼主看的书有点过时了吧,这个应该在低版本中应用的。现在基本上没有这个的,你应该换一本书了。