error 500 problem using file(), help
Posted: Wed Sep 10, 2003 4:36 am
I am stumped with this, when I first placed a script with the following lines of code on one of my servers 3 weeks ago it worked fine, I have now discovered it returns an error 500, the server support is telling me there is a programming problem in my script but it did work and does work on another server I use, has anyone any ideas where the problem moght be on this? I wrote a small test script with the following lines as below:
Code: Select all
<?php
if(($metar_ = @file("ftp://weather.noaa.gov/data/observations/metar/stations/LEAL.TXT")) == false){
print "false";
}else{
print "$metar_";
}
?>