How do you mean an invalid URL? A URL that is not valid as in $url = "poo" or a valid formed URL that doesn't exist? Thanks, Ash http://www.ashleysheridan.co.uk
Does it really matter? In both cases the file_get_contents() wont be able to open the URL and it will produce a warning or an error.