Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Created October 9, 2016 14:21
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 kaspergrubbe/d8bb1dc2d5575717df4430d212947ab0 to your computer and use it in GitHub Desktop.
Save kaspergrubbe/d8bb1dc2d5575717df4430d212947ab0 to your computer and use it in GitHub Desktop.
<?php
ob_start();
var_dump($_POST);
$output = ob_get_clean();
$outputFile = "var_dump_output.txt";
$filehandle = fopen($outputFile, 'a') or die("File creation error."");
fwrite($fileHandle, $output);
fclose($fileHandle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment