Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Nov 2007
    Posts
    682
    Thanks
    319
    Thanked 1 Time in 1 Post

    PHP Error Log Thingy

    How would I go about doing this?

    error_log.txt/php:
    Code:
    //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.
    Last edited by martynball; 03-15-2010 at 08:33 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •