How to prevent 502 error?

Discussion in 'Site & Server Administration' started by Freewebspace, Jun 19, 2007.

  1. #1
    I am constantly receiving these errors when I execute a script


    The script's function is to collect back link data from another server?


    I want the script's execution to continue if it received a 502 error

    how to do it?

    I am using php!



     
    Freewebspace, Jun 19, 2007 IP
  2. privadous

    privadous Active Member

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #2
    can you post the portion of your script where the problem occurs?
     
    privadous, Jun 19, 2007 IP
  3. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #3
    The error I am ge
    Yahoo's api may be a problem
     
    Freewebspace, Jun 19, 2007 IP
  4. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you get it everytime you run the script? or its often?
     
    inworx, Jun 19, 2007 IP
  5. privadous

    privadous Active Member

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #5
    every time you get an error you are breaking the loop (with the command exit)
    Instead of exit put something like:
    echo "error ....";
    and this way the loop will continue executing

    sorry my english
     
    privadous, Jun 19, 2007 IP
    Freewebspace likes this.