Code: Select all
function log ($text)
{
$file = fopen('log.txt', 'a', 1);
fwrite($file, $text);
fclose($file);
}Code: Select all
log("this is a log entry");so if i do this:
Code: Select all
log("this is a log entry ");
log("this is the second log entry ");
log("this is the third log entry");Code: Select all
this is a log entry this is the second log entry this is the third log entryCode: Select all
this is a log entry
this is the second log entry
this is the third log entry