/ Published in: PHP
Simple call imageExists('http://example.com/image.jpg'); true if it exists else false.
Expand |
Embed | Plain Text
function imageExists($url){ $h = get_headers($url); return ($h[0] == "HTTP/1.1 404 Not Found")?false:true; }
You need to login to post a comment.
