...

View Full Version : Checking for dead links



requestcode
08-03-2004, 04:46 PM
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.

mcdougals4all
08-05-2004, 08:33 PM
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

requestcode
08-06-2004, 12:51 PM
Thank you mcdougals4all I will check it out.

scroots
08-15-2004, 08:42 PM
if you use php you could use the file exists method in fopen i think it is.

scroots

requestcode
08-16-2004, 05:38 PM
Thanks scroots I will check that out.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum