[font=trebuchet ms]You could set it up like the following...[/font]
<?php
function getimage($img){
if(@file_get_contents($img)){
return "$img";
} else {
return "/images/not_found.gif";
}
}
?>
[font=trebuchet ms]And use something like this for the image.[/font]
<img src="<?php echo getimage("http://www.somesite.com/someimage.jpg"); ?>" alt="Some image" />