Skip to content

Instantly share code, notes, and snippets.

@mirko77
Created March 6, 2015 17:27
Show Gist options
  • Save mirko77/d80c896070485f9586db to your computer and use it in GitHub Desktop.
Save mirko77/d80c896070485f9586db to your computer and use it in GitHub Desktop.
Dump POST
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
//echo print_r( $_POST);
//echo print_r($_FILES);
$date = new DateTime();
//echo $date->getTimestamp();
file_put_contents("post_".$date->getTimestamp().".txt", print_r( $_POST, true));
file_put_contents("file_".$date->getTimestamp().".txt", print_r( $_FILES ,true));
file_put_contents('input_'.$date->getTimestamp().'.txt', file_get_contents('php://input'));
echo "1";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment