Bug #11025: ftp_connect() does not work with IP address

From: Date: Tue, 22 May 2001 11:34:54 +0000
Subject: Bug #11025: ftp_connect() does not work with IP address
Groups: php.dev 
Request: Send a blank email to php-dev+get-56245@lists.php.net to get a copy of this message
From: dannyschneller@bigfoot.de Operating system: Windows NT4 Server PHP version: 4.0.5 PHP Bug Type: FTP related Bug description: ftp_connect() does not work with IP address Setup: Windows NT4 Server with Apache 39 and PHP 4.0.5 as downloaded (big package) from PHP.NET Situation: phpInfo() says FTP is enabled. ftp_connect('192.168.0.55') does not give connection handle whereas an ftp client on the same machine works perfectly. Tried all kinds of quotes, no success. Solution: Entered a line in local hosts lookup file to replace the IP with a literal name. Replaced the faulty line with ftp_connect("theName") and got the connection right away. -- Edit Bug report at: http://bugs.php.net/?id=11025&edit=1

« previous php.dev (#56245) next »