|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25779 ftp_ssl_connect()
Submitted: 2003-10-07 11:02 UTC Modified: 2003-10-13 03:03 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: tom at smediag dot com Assigned:
Status: No Feedback Package: FTP related
PHP Version: 4.3.3 OS: Unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tom at smediag dot com
New email:
PHP Version: OS:


 [2003-10-07 11:02 UTC] tom at smediag dot com

I am not sure if everything is ok in ftp_ssl_connect() function ... I am trying to connect ftp server using this function but I cant ... I will be grateful if you can tell me what should I do ... or ... what should I install on the server .

Reproduce code:
define('AUTO_TXN_HOST', '');

$sftp = ftp_ssl_connect( AUTO_TXN_HOST, 22 ); // problem is in this line

Expected result:
I should be connected

Actual result:
Warning: ftp_ssl_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/httpd/my/account/site/script.php


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-07 11:09 UTC]
Assuming that you are using a real ftp server address,
that error suggests that there could be a problem with
your IPv6 support.
Try configuring php using --disable-ipv6 and see if that
 [2003-10-07 16:26 UTC]
I notice you're using Port 22.  Are you sure you're trying to access an ftps server and not an sftp server.  (They're not the same thing.)

Port 22 is typically the SSH port (which can also be used for the SSH based sftp protocol).

ftp_ssl_connect() uses the ftps protocol.

 [2003-10-13 03:03 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 10:01:35 2024 UTC