PHP Read POST Data

Category > PHP || Published on : Sunday, January 12, 2020 || Views: 98 || PHP Read POST Data


Here Pawan Kumar will explain how to PHP Read POST Data

<?php
header('Content-Type: application/json');
$request = file_get_contents('php://input');
$req_dump = print_r( $request, true );
$fp = file_put_contents( 'request.log', $req_dump );
?>