php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11025 ftp_connect() does not work with IP address
Submitted: 2001-05-22 13:34 UTC Modified: 2001-11-19 05:44 UTC
From: dannyschneller at bigfoot dot de Assigned:
Status: Closed Package: FTP related
PHP Version: 4.0.5 OS: Windows NT4 Server
Private report: No CVE-ID: None
 [2001-05-22 13:34 UTC] dannyschneller at bigfoot dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-21 21:35 UTC] 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-07-22 06:18 UTC] 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-10-29 02:17 UTC] sniper@php.net
status -> feedback
 [2001-11-19 05:44 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC