Created
February 6, 2012 06:10
-
-
Save ipl31/1750147 to your computer and use it in GitHub Desktop.
Simple php script to write http posts to a file for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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