/ Published in: PHP

Simple call imageExists('http://example.com/image.jpg');
true if it exists else false.
true if it exists else false.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function imageExists($url){ return ($h[0] == "HTTP/1.1 404 Not Found")?false:true; }
Comments
