Broken Links Checker

Discussion in 'PHP' started by protocol96, Sep 4, 2007.

  1. #1
    I looked up the internet and couldn't find any script to check for broken links, does any1 have it to get me started.
     
    protocol96, Sep 4, 2007 IP
  2. Kuldeep1952

    Kuldeep1952 Active Member

    Messages:
    290
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You can use Xenu Link Sleuth. It is an offline program, so you have to download and install it.
     
    Kuldeep1952, Sep 4, 2007 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  4. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Nico,

    brother, i want to do this, dont stop me, Muah!!!
     
    protocol96, Sep 4, 2007 IP
  5. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #5
    Was that a kiss? lol
     
    nico_swd, Sep 4, 2007 IP
  6. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    the reps didnt go in so I thought i will give u a kiss :D

    the links resolved some of issues, but there's one more which came up,
    abc.com is getting redirected to a xyz.com/test.php?page=valid or xyz.com/test.php?page=invalid which is an error page,

    it comes up as no error cause the page does return a valid header, so i need to get the redirected url and check for it, now i m findin difficult in getting the redirected url on which i play around.

    i just got the headers
    its giving 302, 302 and then 200
    i used this
    http://forums.digitalpoint.com/showthread.php?t=452423
    but i cant get the final url, its still giving me the same url.
     
    protocol96, Sep 6, 2007 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #7
    nico_swd, Sep 6, 2007 IP
  8. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i used ur script there, but it aint returning me the redirected value.

    Quick Update:

    I used get_headers which was returning me loads of values and on the 3rd url (2 nd redirect) was giving me the final url i needed to do a string check but now i realised i m on php 4 and not 5
    so it there any function that can gimme all the possible header values cause the ones mentioned here http://in2.php.net/get_headers
    gives me on the first redirect where my value comes up on 2nd redirect
     
    protocol96, Sep 6, 2007 IP
  9. Zohaib

    Zohaib Guest

    Messages:
    226
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Zohaib, Sep 15, 2007 IP
  10. ishan

    ishan Prominent Member

    Messages:
    2,212
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    325