Page 1 of 1

Managing External Links

Posted: Wed Jan 12, 2005 10:39 am
by neophyte
I've got a few hundred links on a site I'm working on. I would like to be able to write a script that will detect whether the page is still there -- 404 detection or what not. I've no idea where to start on this one. Can someone steer me in the right direction or tell me it can't be done?

Thanks

Posted: Wed Jan 12, 2005 1:51 pm
by PHPadvisor
There are many free broken link checkers available. Try doing a google search for 'link checker' or something like that.

Posted: Wed Jan 12, 2005 1:53 pm
by neophyte
I was wondering how to google that...

Posted: Wed Jan 12, 2005 2:01 pm
by PHPadvisor
Yup, search for link checker

there should be some free ones where you just give the url of your page...

Posted: Wed Jan 12, 2005 2:01 pm
by rehfeld
maybe:
php webmaster tools links dead

Posted: Wed Jan 12, 2005 2:03 pm
by neophyte
I've found several now that will suit my needs. Thanks "all ye all"! :lol:

Posted: Sat Jan 15, 2005 3:57 am
by teksys
Try Linklint,

http://www.linklint.org/

-teksys

Posted: Sat Jan 15, 2005 6:01 pm
by JAM
get_headers() could work, with PHP5. If you are using PHP4 still, this might be useful...
Code and example given out like this as this board didn't like me posting it... =/

Credits should go to cpurruc fh-landshut de on the get_headers() comments list @ php.net, allthough I rewrote it slightly to correct errors being reported with $url_info['query']