Possible Duplicate:
what is the best way to check if a Url exists in PHP ?`
I'm looking for a function that returns TRUE or FALSE in php, either the URL is valid or not.
isValidURL($url); i think that simple... That would take into count all kind of URL possible.
By valid i want It to referes to an existing page of the web or other kind of files. It just should exist
You can check whether URL is valid or not using
parse_url
function which would returnfalse
if URL is not valid and anarray
otherwise.pretty easy way, huh? :)
this does not check tlds though