$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"); ?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With