SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Check domain errors

    Hello,

    I'm making a little link exchange script that gets the meta title,description from an url via the fopen.

    I have made a domain check if the domain still exists but i receive many errors in my script when a domain has this problem =>

    509 Bandwidth Limit Exceeded

    Is there a way in php how i can check if the domain is alive if it has errors like 500,509 so i don't have to execute my whole script and can stop showing the errors ?

    --------
    Cheers,
    Kris

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the error i receive is this =>

    php_network_getaddresses: getaddrinfo failed

    Just because the website i'll try to crawl has 509 or 500 errors. I want to catch this errors.

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone ?


Bookmarks

Posting Permissions

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