Return to Snippet

Revision: 16336
at July 31, 2009 11:24 by suibhne

Initial Code
function doLog($text)
  // open log file
  $filename = "form_ipn.log";
  $fh = fopen($filename, "a") or die("Could not open log file.");
  fwrite($fh, date("d-m-Y, H:i")." - $text\n") or die("Could not write file!");

Initial URL

Initial Description
Just simple logging to a text file for so many reasons.

Initial Title
PHP Log to Text File

Initial Tags

Initial Language