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.
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
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.
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.
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.