
chubbychubus
-
Posts
6 -
Joined
-
Last visited
Community Answers
-
chubbychubus's post in chubbychub (no, this thread isn't spam) was marked as the answer
thank you requinix!, that helped, i ended up using the below code:
function logText($text)
{
$ts = date("D d-m-y h:i A",time());
$toLog = "[" . $ts . "] " . $text;
file_put_contents( "logFile.txt",$toLog);
//fwrite($fh, $toLog."\n");
//fclose($fh);
}
this has time stamp in a formatt that i want to easily read.