Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

ss4000 recovery array, intel ss4000 xfs, Proxy.in.audi.vwg, intel ss4000 data recovery, mysql andreas pankratz, maximum execution time exceeded php meldung abfangen, how to convert .cap file to .txt, WWWXXXAPC, WWWXXXAPC site:board.issociate.de, change font size ncurses

Links

XODOX
Impressum

#1: Error with ftp_get()

Posted on 2003-11-14 13:33:57 by Thorben

Hi guys.
It's possible that my english sometimes isn't so good. I'm a small
german boy.
At the moment i am working on a WebFTP client. All the stuff like
list,mkdir,rm(dir),put works. But when i use ftp_get() an error appears:

Warning: ftp_get(): 'RETR ' not understood.

I guess 'RETR' is a message from FTPServer to PHP and PHP don't
understand it. So, can you tell me, how to avoid this?

Yours, Thorm.

--
- RPG Genesis 2004 -
- Make your dreams believable -

http://www.rpg-genesis.de

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#2: Re: Error with ftp_get()

Posted on 2003-11-14 14:18:41 by Thorben

Oh. Yes. I forget the code.
With an normal FTP-client i can get the file easily.
Ah! I've found the error.
My code was

ftp_get($conn, "tmp", $file, FTP_BINARY);

The var $file is a GET-var, but on my server register_globals is off. So
i had to write $_GET['file']. It was so easy.


> On Fri, 2003-11-14 at 07:33, Thorben wrote:
>
>>Warning: ftp_get(): 'RETR ' not understood.
>>
>>I guess 'RETR' is a message from FTPServer to PHP and PHP don't
>>understand it. So, can you tell me, how to avoid this?
>
>
> When you request (get) a file using the ftp command you send a RETR
> command to the ftp server indicating which file you want to retrieve.
> I'm not 100% sure what is going on since there is no code in your post,
> but it looks like the RETR command is disabled on the ftp server. This
> means you will not be able to download files. Try retrieving the file
> manually using your favorite ftp client and see what happens. If you
> can post the code you are using we may be able to help better.
>

--
RPG Genesis 2004
Mach' deine Träume wahr!
Mach' dein Spiel!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#3: Re: Error with ftp_get()

Posted on 2004-02-14 13:56:56 by Adam Bregenzer

On Fri, 2003-11-14 at 07:33, Thorben wrote:
> Warning: ftp_get(): 'RETR ' not understood.
>
> I guess 'RETR' is a message from FTPServer to PHP and PHP don't
> understand it. So, can you tell me, how to avoid this?

When you request (get) a file using the ftp command you send a RETR
command to the ftp server indicating which file you want to retrieve.
I'm not 100% sure what is going on since there is no code in your post,
but it looks like the RETR command is disabled on the ftp server. This
means you will not be able to download files. Try retrieving the file
manually using your favorite ftp client and see what happens. If you
can post the code you are using we may be able to help better.

--
Adam Bregenzer
adam@bregenzer.net
http://adam.bregenzer.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message