#25779 [Fbk]: ftp_ssl_connect()

From: Date: Tue, 07 Oct 2003 20:26:10 +0000
Subject: #25779 [Fbk]: ftp_ssl_connect()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48667@lists.php.net to get a copy of this message
ID: 25779 Updated by: pollita@php.net Reported By: tom at smediag dot com Status: Feedback Bug Type: FTP related Operating System: Unix PHP Version: 4.3.3 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-10-07 11:09:41] wez@php.net 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 helps. ------------------------------------------------------------------------ [2003-10-07 11:02:09] tom at smediag dot com Description: ------------ Hello, 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', 'ftp.domain.com'); $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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25779&edit=1

« previous php.bugs (#48667) next »