Revision: 50238
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 17, 2011 01:46 by MichaelM
Initial Code
function imageExists($url){
$h = get_headers($url);
return ($h[0] == "HTTP/1.1 404 Not Found")?false:true;
}
Initial URL
Initial Description
Simple call imageExists('http://example.com/image.jpg');
true if it exists else false.
Initial Title
Check to see if a external image exists
Initial Tags
image
Initial Language
PHP