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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Checking for dead links

    What is the best way to check for dead links? I currently use a PHP script that you type in the URL and it checks it out and returns all sorts of data that I really don't need. What I would like to be able to do is check all the links on an HTML document without typing each one in separately. The first idea I thought of would be to use PHP to pull the HTML document in and gather up all the links and check to see if each one is valid. I would only want it to report any dead links not ones that are ok. This might be to intensive though for the server so my second idea would be to check the server log file(s) to see if anything there would indicate a dead link. Can you give me some advice on the best way to go about doing this and some resources or sample scripts that I could use to do this? Thank you.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    mile high city
    Posts
    482
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I use xenu link sleuth. Not a script solution but a very useful program. It's a free download but requires Windows.

    Very easy to use and produces clear concise reports.

    http://home.snafu.de/tilman/xenulink.html

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you mcdougals4all I will check it out.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you use php you could use the file exists method in fopen i think it is.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks scroots I will check that out.


  •  

    Posting Permissions

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