Skip to content

Instantly share code, notes, and snippets.

@ipl31
Created February 6, 2012 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipl31/1750147 to your computer and use it in GitHub Desktop.
Save ipl31/1750147 to your computer and use it in GitHub Desktop.
Simple php script to write http posts to a file for debugging
<?php $stamp = time();
$filename = '/tmp/post-'.$stamp.'.txt';
file_put_contents($filename, file_get_contents('php://input'));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment