I\'ve never used PHP but right now, I need to write a PHP file that displays in a log file the content of the body of a POST HTTP request.
I\'ve read that you can ac
$post_body = file_get_contents('php://input');
php://inputallows you to read raw POST data. It is a less memory intensive alternative to$HTTP_RAW_POST_DATAand does not need any special php.ini directives.php://inputis not available with enctype="multipart/form-data".
(Source: http://php.net/wrappers.php)