Below are revisions for this snippet.

Check if a URL exists/is online.





Syndication

Revision Revison 1
This simple function will check if a url is valid (going by parse_url()) and if it's 'online' - by seeing if it returns a 302, 301, or 200 status code.