Connecting Tech Pros Worldwide Help | Site Map

ftp_get() Help

  #1  
Old August 23rd, 2005, 05:35 PM
ralphNOSPAM@primemail.com
Guest
 
Posts: n/a
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/


  #2  
Old August 23rd, 2005, 05:55 PM
Joachim Weiß
Guest
 
Posts: n/a

re: ftp_get() Help


ralphNOSPAM@primemail.com schrieb:[color=blue]
> 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.
>[/color]
it seem that you do'nt adress KLAX.txt but the directory listing .....
perhaps your var $server_fiel does not contain what you expect ....
[color=blue]
> I don't understand the msg as the file *is* a text file.[/color]
the directory isn't
[color=blue]
> ftp://tgftp.nws.noaa.gov/data/observ...etar/stations/[/color]

ftp://tgftp.nws.noaa.gov/data/observ...tions/KLAX.TXT
is a text file

HIH

Jo
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop and Resume Download empiresolutions answers 5 February 1st, 2009 11:58 PM
ftp_get save the file in the ServerSide marcarlem answers 1 July 28th, 2008 09:54 PM
save as dialog to save the file getting from ftp_get More options irfan.mohammed@gmail.com answers 1 March 15th, 2007 06:15 PM
problem with ftp_put and ftp_get Alex answers 5 December 9th, 2005 07:05 PM