$HTTP_RAW_POST_DATA is removed in PHP 7.0. In my application, I also have the following line. What is the alternative I can use for this ?
if (isset($GLOBALS['HTTP_RAW_POST_DATA']) &&
mb_strlen($GLOBALS['HTTP_RAW_POST_DATA']))
According to the manual :
In general, php://input should be used instead of $HTTP_RAW_POST_DATA
To get the Raw Post Data:
<?php $postdata = file_get_contents("php://input"); ?>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.