Skip to content

Instantly share code, notes, and snippets.

@tatanus
Last active August 29, 2015 14:17
Show Gist options
  • Save tatanus/6e7fc6aaeca06d046dc1 to your computer and use it in GitHub Desktop.
Save tatanus/6e7fc6aaeca06d046dc1 to your computer and use it in GitHub Desktop.
<?php
$file = 'LOG.txt';
$arr= $_REQUEST;
$fp = fopen($file, 'a');
foreach ($arr as $key => $value) {
$toFile = "Key: $key; Value: $value \n";
fwrite($fp, "$toFile");
}
fclose($fp);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment