I'm trying to download a text file named KLAX.TXT at
tgftp.nws.noaa. gov
using
if (ftp_get($conn_ id, "Metar Reports/$local_file", $server_file,
FTP_BINARY))
{
print "Success";
}
But I keep gettning this err msg:
Warning: ftp_get(): /data/observations/metar/stations/: not a plain
file.
I don't understand the msg as the file *is* a text file.
You can go here with your browser and see it's a text file.
ftp://tgftp.nws.noaa.gov/data/observ...etar/stations/
tgftp.nws.noaa. gov
using
if (ftp_get($conn_ id, "Metar Reports/$local_file", $server_file,
FTP_BINARY))
{
print "Success";
}
But I keep gettning this err msg:
Warning: ftp_get(): /data/observations/metar/stations/: not a plain
file.
I don't understand the msg as the file *is* a text file.
You can go here with your browser and see it's a text file.
ftp://tgftp.nws.noaa.gov/data/observ...etar/stations/
Comment