[snip]
<?php
$URLbase =
"http://rsd.gsfc.nasa.gov/goesg/earth/Weather/GMS-5/jpg/vis/4km/";
if (!($fp = fopen($URLbase, "r")))
{
echo "<p style=color:white>Could not open the url</p>";
exit;
}
$contents = fread($fp, 1000000);
fclose($fp);
?>
[/snip]
Was that really a line break after $URLbase = ? (Probably not, but just
checking) ...
Try adding a 'b' to your fopen ...
fopen($URLbase, "rb")
... in the event that you're dealing with a Windows platform.
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php