Posted By

saturngod on 03/17/10


Tagged

file check crossdomain


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrianCoyDesign


Cross domain file check


 / Published in: PHP
 

  1. $imgfile="http://www.crossdomain.com/image.jpg";
  2. try
  3. {
  4.  
  5. } catch (Exception $e) {
  6. $k=false;
  7. }
  8.  
  9. if($k!=false)
  10. {
  11. $result .= "<img src='$imgfile'>";
  12.  
  13. }
  14. else
  15. {
  16. $result.="no image file";
  17. }

Report this snippet  

You need to login to post a comment.