fopen.
PHP Code:
<?php
$url = 'http://domain.com/foo.gif';
$fp = @fopen($url,'r');
if (!$fp) {
echo "ERROR - URL {$url}, not accessable";
}
else {
echo 'YES';
}
?>
..or if it's applicable have the script check every X minutes to see if the image is available and if so download it to the local server..
-r