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

From: Date: Sun, 22 Jul 2001 01:35:08 +0000
Subject: Bug #11025 Updated: ftp_connect() does not work with IP address
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60531@lists.php.net to get a copy of this message
ID: 11025 Updated by: andy Reported By: dannyschneller@bigfoot.de Old Status: Open Status: Duplicate Bug Type: FTP related Operating System: Windows NT4 Server PHP Version: 4.0.5 New Comment: Whoa! This is exactly the OPPOSITE of what I expected. Usually in something like this, the IP works, and the name doesn't. I have no clue what would cause that. Can anyone duplicate this? Previous Comments: ------------------------------------------------------------------------ [2001-05-22 13:34:53] dannyschneller@bigfoot.de 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 this bug report at http://bugs.php.net/?id=11025&edit=1

« previous php.dev (#60531) next »