-
-
Save jacksonfdam/6205273 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| // Outputs all POST parameters to a text file. The file name is the date_time of the report reception | |
| $fileName = date('Y-m-d_H-i-s').'.txt'; | |
| $file = fopen($fileName,'w') or die('Could not create report file: ' . $fileName); | |
| foreach($_POST as $key => $value) { | |
| $reportLine = $key." = ".$value."\n"; | |
| fwrite($file, $reportLine) or die ('Could not write to report file ' . $reportLine); | |
| } | |
| fclose($file); | |
| ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment