Checking a URL to see if it's broken
Posted: Fri Oct 30, 2009 3:21 pm
Hi guys,
I have written a nice little PHP jump script (link redirection script) and would like to build into the backend (admin area) the ability to check links to see if they actually work or are broken (ie. do they return a 404 or 202?).
Does anyone know how to use PHP to check the workingness of a URL? I've done some google searching and can't quite find what I'm looking for. Nothing complicated, just something to show if there are broken links in my database.
Thanks for your help and guidance.
I have written a nice little PHP jump script (link redirection script) and would like to build into the backend (admin area) the ability to check links to see if they actually work or are broken (ie. do they return a 404 or 202?).
Does anyone know how to use PHP to check the workingness of a URL? I've done some google searching and can't quite find what I'm looking for. Nothing complicated, just something to show if there are broken links in my database.
Thanks for your help and guidance.