...

View Full Version : PHP Error Log Thingy



martynball
03-15-2010, 09:21 PM
How would I go about doing this?

error_log.txt/php:


//ERROR LOG - UPDATED ON\\
$upDate="10.12.2010";

//Errors
$date="09.12.2010";
$error="Error 1";
$error="Error 2";

$date="10.12.2010";
$error="Error 1";
$error="Error 2";


What it should do is search for the current date in the file, if the date is found then add the new error under that date.

If the date is not found then it should create the new date and add the error. So a while loop would search through the file for the $date variable matching the current one.

How can I do this? Example code (breif) ? Please. Lol.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum