PHP Log to Text File
Just simple logging to a text file for so many reasons.
Copy this code and paste it in your HTML
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!"); }
Report this snippet
Comments
Subscribe to comments