Shaitan00
03-26-2009, 05:59 AM
I am currently using fwrite(...) to log traces to a log file, seems to be working like a charm - but now I would like to beef it up a little.
Instead of simply having the error messages, I wanted to add a TimeStamp to the head of the string, making it easier to find out when the issue occured.
Currently I have the following
if (fwrite($this->hFile, $string."\r\n")) return true;
How can I add a timestamp to this in PHP5?
Thanks,
Instead of simply having the error messages, I wanted to add a TimeStamp to the head of the string, making it easier to find out when the issue occured.
Currently I have the following
if (fwrite($this->hFile, $string."\r\n")) return true;
How can I add a timestamp to this in PHP5?
Thanks,