manually set the error condition and write it in seperate file

Discussion in 'PHP' started by kumar84, Jun 21, 2007.

  1. #1
    If i know the error in my script, then i want to handle the error manually,by giving some conditions and i want to write the error manually and
    i want to save that error in the seperate file (for ex in java we are doing by try,catch block)
    if any body knows this in php coding
     
    kumar84, Jun 21, 2007 IP
  2. UnrealEd

    UnrealEd Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I posted a solution to your problem in your other 2 posts:
    http://forums.digitalpoint.com/showthread.php?t=373334
    http://forums.digitalpoint.com/showthread.php?t=373163

    The first one clearly says how you can capture the errors, and how to store the errors in a separate file, instead of the error log
     
    UnrealEd, Jun 22, 2007 IP
  3. Nikolas

    Nikolas Well-Known Member

    Messages:
    1,022
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    150