Is it possible to detect whether a given URL is valid or not in php?
I know there exists programs that do this but I need this as part of a script that I am working on.
I could try connecting to the site and wait for a time-out but this would not work for sites that have a 404 page...
Any ideas?
Thanks for your time
I know there exists programs that do this but I need this as part of a script that I am working on.
I could try connecting to the site and wait for a time-out but this would not work for sites that have a 404 page...
Any ideas?
Thanks for your time