You could use @ in front at the function name to prevent the function to send warnings to the screen...
$addr="http://whatever.org/foo.jpg";
$fp = @fopen($addr,"r");
if (!$fp) {
echo "$addr is not a valid URL";
die;
}
else
echo "ok!";
But I can't get that script to work no matter what... But if it works for you, and you only want to get rid of those warnings.. use @fopen()
Andreas Bernhardsen
Graficonn