Posted By

MichaelM on 08/17/11


image check

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Check to see if a external image exists

 / Published in: PHP

Simple call imageExists(''); true if it exists else false.

  1. function imageExists($url){
  2. $h = get_headers($url);
  3. return ($h[0] == "HTTP/1.1 404 Not Found")?false:true;
  4. }

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Jacky888 on October 20, 2018

the 8 best pc stick go here

You need to login to post a comment.