stil problems with fopen and URL

From: Date: Mon, 26 Mar 2001 15:14:01 +0000
Subject: stil problems with fopen and URL
Groups: php.general 
Request: Send a blank email to php-general+get-45616@lists.php.net to get a copy of this message
Sorry for re posting this problem, but after spending a bunch of hours still there is something "misterious" to me: can you find anything broken in this code? (Again it works fine with 3.3.0.15 and 3.3.0.16 but is broken with 3.3.0.18, on Debian, apache). $noaa = "http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=MUHA" ; $wfile = fopen ($noaa, "r"); $weathcont = fread ($wfile , 1024); ereg (" ([0-9][0-9])/([0-9][0-9]) " , $weathcont, $reg); $far = 32 + ( $reg[1] / (5.0 / 9.0)); $data = date("d F"); $ora = (date("H")-6); echo "<font size=\"-1\" color=\"SteelBlue\"><b> Temperature in Habana, on $data, at "; if ($ora < 0){ $timezone = ($ora + 24); echo $timezone; }else{ echo $ora ; } echo " is:</b></font><br> <font color=\"SteelBlue\"><b>$reg[1] C ($far F)</b></font>"; fclose($wfile);

« previous php.general (#45616) next »