note 25329 added to function.ftp-connect
| From: | kentNOSPAM at ioflux dot NOSPAM dot com | Date: | Thu, 19 Sep 2002 22:04:41 +0000 |
| Subject: | note 25329 added to function.ftp-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36999@lists.php.net to get a copy of this message | ||
I think what some other posts were trying to say which may need clarification is that in PHP 4.2.3,
ftp_connect("myhost.com") was failing most of the time, except it would work like every
few minutes.
The fix is that ftp_connect seems to have a bug resolving addresses. If you do:
$hostip = gethostbyname($host);
$conn_id = ftp_connect($hostip);
It seems to solve the problem.
(Other users referred to an ftpbuf() error... not sure what that is, but this should fix it.)
--
http://www.php.net/manual/en/function.ftp-connect.php
http://master.php.net/manage/user-notes.php?action=edit+25329
http://master.php.net/manage/user-notes.php?action=delete+25329
http://master.php.net/manage/user-notes.php?action=reject+25329