Re: [PHP4BETA] Strange FTP behavior
| From: | Andrew Skalski | Date: | Wed, 01 Dec 1999 15:16:52 +0000 |
| Subject: | Re: [PHP4BETA] Strange FTP behavior | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7177@lists.php.net to get a copy of this message | ||
What ftp server are you using? RFC959 defines CWD as the change directory
command and MKD as the optional make directory command.
andy
On Tue, Nov 30, 1999 at 05:48:20PM -0500, Darrell Brogdon wrote:
> I've been using the FTP functions from beta 3 almost since PHP4b3 was
> released and it worked great. For some reason today it just stopped
> working. I've not modified my scripts nor have I recompiled PHP4b3.
>
> In looking at the source code (php4b3/ext/ftp/ftp.c) I see on line 287:
>
> fprintf(ftp->fp, "CWD %s\r\n", dir);
>
> Shouldn't this be 'cd' instead of 'CWD'?
>
> The same applies for mkdir (line 320). It contains 'MKD' instead of
> 'mkdir'.
>
> I tried changing them to 'cd' and 'mkdir' respectively in the source but it
>
> changes the strings to uppercase which isn't recognized by the ftp server.
>
> -Darrell
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>