Bug #11025 Updated: ftp_connect() does not work with IP address
| From: | sniper@php.net | Date: | Mon, 29 Oct 2001 07:17:01 +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-69246@lists.php.net to get a copy of this message | ||
ID: 11025
Updated by: sniper
Reported By: dannyschneller@bigfoot.de
Old Status: Duplicate
Status: Feedback
Bug Type: FTP related
Operating System: Windows NT4 Server
PHP Version: 4.0.5
New Comment:
status -> feedback
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 06:18:45] venaas@php.net
I think this is just like bug #11000. Could you test
fopen with ftp or http as well? If that works for you
I think I know how to make ftp_connect() work as well.
For more info, see what I wrote for bug #11000.
------------------------------------------------------------------------
[2001-07-21 21:35:08] andy@php.net
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?
------------------------------------------------------------------------
[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