How do I check if a URL exists (not 404) in PHP?
to check if url is online or offline ---
function get_http_response_code($theURL) { $headers = @get_headers($theURL); return substr($headers[0], 9, 3); }