PHP 4.0 Bug #4546: ftp_connect won't connect to a site that sends a message back
| From: | joe at cerbernet dot co dot uk | Date: | Mon, 22 May 2000 17:02:29 +0000 |
| Subject: | PHP 4.0 Bug #4546: ftp_connect won't connect to a site that sends a message back | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19220@lists.php.net to get a copy of this message | ||
From: joe@cerbernet.co.uk
Operating system: Redhat Linux
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Misbehaving function
Bug description: ftp_connect won't connect to a site that sends a message back
The ftp_connect() function is great, except for if I use it to connect to an FTP Server which
outputs a logon message.
eg. on Linux, if the file .message is present in the FTP home dir, the FTP server outputs the file,
and ftp_connect() produces a visible warning, containing part of the server's logon message.
This had me really stumped, until I deleted .message. As far as I can see, once ftp_connect reads a
230 from the server, it should keep on reading + ignoring until the socket's empty..
Thanks for the help + great language!