php://input and file_get_contents just output the POST data rather than process it
I have the following snippet of code. For the URL QueryString, I am passing in php://input. In the body of the request I am passing in <?php echo "ABC";?> $image_url=$_GET[‘URL’]; $data = file_get_contents($image_url); $new = ‘images/TEST.jpg’; $upload = file_put_contents($new, $data); When I curl the image I get <?php echo "ABC";?>. Why is it just printing… Read More php://input and file_get_contents just output the POST data rather than process it