Zend - The PHP Company




Link Checkers

Add Code


Curl-based Link Checker - Returns All Codes: 200, 404, etc.  

Type: code fragment
Added by: phadeguy
Entered: 09/08/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 9430
This function takes a link url and returns an array of info needed to see if the link is good. If the link is bad or the server is down, the return will be an empty array. The example code given shows how to check links stored in a MySQL database and store the link status.


OUCH! (opportunistic URL catching hack)  

Type: code fragment
Added by: karel007
Entered: 20/05/2002
Last modified: 06/12/2001
Rating: **** (3 votes)
Views: 5793
A regular expression to match a URL (http and https) in a text and replace it with the A tag. It also matches only www links (written without http://). And it doesn't include a possible character at the end of the link! MOSTLY CODED BY STAN!!! thanx! report any bugs an other features to me


simple URL/ link checker  

Type: code fragment
Added by: sultanzahir
Entered: 29/04/2002
Last modified: 05/12/2001
Rating: - (fewer than 3 votes)
Views: 8833
This simple script validate any valid link or URL. Just write the concerned link in the text box and push the verify button.


True valid link, checks 404, 403, 300!  

Type: code fragment
Added by: Euphorea
Entered: 08/02/2001
Last modified: 08/12/2000
Rating: **** (3 votes)
Views: 12531
It's a build on ones that were made before, I just added the part to actually check if the file exists. I need to modify the caching thing to care about the file part... or maybe not.


valid link!  

Type: code fragment
Added by: idban
Entered: 08/07/2000
Last modified: 07/12/2001
Rating: *** (12 votes)
Views: 29975
This is a simple PHP code that lets you see if a link is valid before
displaying it on your Web page. It is useful since you can have live links,
but your site can become slow as the script checks the link before
displaying the link. Just imagine if you got 100 links to check.


valid link! +cache  

Type: code fragment
Added by: SHARYANTO
Entered: 12/07/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7594
An enhanced form of Idban's valid link!, a PHP script that lets you a test a link for the host's connectivity before displaying it. Enhancements include: cache in session and test for absolute/relative links.

Note that, despite its name, this script does not truely test whether a link is valid. A valid link should return a 200 HTTP status code, which this script does not test. What this script test is whether the web/FTP server of the link is reachable and listening (that is, from server that host the script to the link host, anyway, not from the viewer's computer to the link host :-p). But the script still could be somewhat useful to some of you, I guess.




Search



This Category All Categories