Managing External Links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Managing External Links

Post 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
User avatar
PHPadvisor
Forum Newbie
Posts: 11
Joined: Mon Dec 13, 2004 3:20 pm

Post by PHPadvisor »

There are many free broken link checkers available. Try doing a google search for 'link checker' or something like that.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

I was wondering how to google that...
User avatar
PHPadvisor
Forum Newbie
Posts: 11
Joined: Mon Dec 13, 2004 3:20 pm

Post by PHPadvisor »

Yup, search for link checker

there should be some free ones where you just give the url of your page...
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

maybe:
php webmaster tools links dead
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

I've found several now that will suit my needs. Thanks "all ye all"! :lol:
User avatar
teksys
Forum Commoner
Posts: 34
Joined: Tue May 14, 2002 6:58 pm
Location: Denmark

Post by teksys »

Try Linklint,

http://www.linklint.org/

-teksys
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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']
Post Reply