Bug #5026: ftp_size and transfer mode
| From: | spt at dycon dot com | Date: | Wed, 14 Jun 2000 09:40:27 +0000 |
| Subject: | Bug #5026: ftp_size and transfer mode | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21295@lists.php.net to get a copy of this message | ||
From: spt@dycon.com
Operating system: Linux 2.2
PHP version: 3.0.16
PHP Bug Type: Feature/Change Request
Bug description: ftp_size and transfer mode
I am using the ftp_size command to connect to a NcFTPd server. NcFTPd does not support the size
command in ascii mode. Information is at :
http://www.ncftpd.com/ncftpd/doc/faq/func.html#size_ascii
Is there any way that this could be changed to binary mode, ie insert about line 602 of
function/ftp.c the following:
if (!ftp_type(ftp, FTPTYPE_IMAGE))
return -1;
Or for consistancy of the API have an optional mode parameter to this function.
Thanks for the newly added ftp support and thank you for your assistance.