note 25330 added to ref.ftp

From: Date: Thu, 19 Sep 2002 22:05:41 +0000
Subject: note 25330 added to ref.ftp
Groups: php.notes 
Request: Send a blank email to php-notes+get-37000@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/ref.ftp.php http://master.php.net/manage/user-notes.php?action=edit+25330 http://master.php.net/manage/user-notes.php?action=delete+25330 http://master.php.net/manage/user-notes.php?action=reject+25330

« previous php.notes (#37000) next »