Posted By

jzumbrun on 04/12/10


Tagged

image textmate


Versions (?)

get_image


 / Published in: PHP
 

  1. // get and return images for empty images
  2. function get_image($url)
  3. {
  4. $image = get_headers($url,1);
  5. if($image['content-length'] > 807) return $url;
  6. else return base_assets().'images/footer_logo.png';
  7. }

Report this snippet  

You need to login to post a comment.