Jump to content

LogFile


eeekin_07

Recommended Posts

Hello php freaks,

 

i am now have a problem to use logfile..the code ive got is:

 

$logline = $ReferenceNo .'|' . $StatusLog .'|' . $RemarksLog. "\r\n";

 

$logfile = 'C:\apachefriends\xampp\htdocs\SisPakar\logfile.txt';

 

if (!$handle = fopen($logfile, 'a+')) {

      die("Failed to open log file");

}

 

if (fwrite($handle, $logline) === FALSE) {

      die("Failed to write to log file");

}

 

fclose($handle);

}

 

the prblems is, i want the logfile.txt(in line 3)to be in the following format :KSM_DDMMYYHHMMSS.txt

 

is there anyone xperienced in this? help me plis...

Link to comment
https://forums.phpfreaks.com/topic/47690-logfile/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.