Re: Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.
| From: | Luke | Date: | Thu, 15 Jan 2004 20:49:47 +0000 |
| Subject: | Re: Where is the mistace? Warning: ftp_put(): 'STOR ' not understood. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174700@lists.php.net to get a copy of this message | ||
That shouldnt matter, because FTP_BINARY is a constant, and therfore has a
numeric, or string value. The only way FTP_BINARY would become a physical
string is if there was quotes around it.
As for the problem, are you sure you have the right connection open, because
the error (STOR not understood) sounds like you mat not have connected to a
valid FTP server? possibly or permissions?
--
Luke
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B02A295@nemesis.niicommunications.com...
[snip]
$mode = FTP_BINARY;
$picuploadname = $picupload[$i];
$piclocalname = "../pictures/".$piclocal[$i];
ftp_put($conn_ftp,$picuploadname ,$piclocalname ,$mode);
[/snip]
You cannot put FTP_BINARY into a variable, it then becomes a string
instead of a function directive.
Cahnge to this and see if it works;
ftp_put($conn_ftp,$picuploadname ,$piclocalname , FTP_BINARY);