Skip to content

Instantly share code, notes, and snippets.

@montes
Created May 15, 2013 12:19
Show Gist options
  • Save montes/5583603 to your computer and use it in GitHub Desktop.
Save montes/5583603 to your computer and use it in GitHub Desktop.
ob_start();
echo "\n>>>>>>>>>>++++++case setCartCustomerId+++++++++<<<<<<<<<\n";
echo date('d/m/Y H:i:s');
echo "\n------GET:-----\n";
var_dump($_GET);
echo "\n------POST:-----\n";
var_dump($_POST);
echo "\n------\n";
$text = ob_get_clean();
$myFile = "log.txt";
$fh = fopen($myFile, 'a');
fwrite($fh, $text);
fclose($fh);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment