Skip to content

Instantly share code, notes, and snippets.

@nomanson
Created August 4, 2012 20:48
Show Gist options
  • Save nomanson/3259838 to your computer and use it in GitHub Desktop.
Save nomanson/3259838 to your computer and use it in GitHub Desktop.
PHP create debug file
$myFile = 'testFile.txt';
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = 'project: ' . $project . "\n";
$stringData .= 'executed: ' . date('l jS \of F Y h:i:s A') . "\n";
fwrite($fh, $stringData);
fclose($fh);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment