Hello,
I'm trying to do some operations on the log file using php. For example I would like to clear the log file which is a simple text file. How can I do that without removing the file? Which php function would I use?
Lucas
Easiest way open the file for writing and just close it again, this will empty the contents
$fp = fopen("yourfile", "w"); fclose($fp);