Connecting Tech Pros Worldwide Help | Site Map

ftp_get() Help

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 23rd, 2005, 04:35 PM
ralphNOSPAM@primemail.com
Guest
 
Posts: n/a
Default ftp_get() Help

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, 04:55 PM
Joachim Weiß
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.