Call to undefined function ftp_ssl_connect()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Call to undefined function ftp_ssl_connect()

Postby jcony » 24. March 2007 18:28

Code:
$con = ftp_ssl_connect("192.168.0.2", "54321", "30");

Error:
Fatal error: Call to undefined function ftp_ssl_connect() in C:\r\xampp\xampp\htdocs\test.php on line 23

As per php.net:
Why this function may not exist: ftp_ssl_connect() is only available if OpenSSL support is enabled into your version of PHP. If it's undefined and you've compiled FTP support then this is why. For Windows you must compile your own PHP binaries to support this function.

My Setup:
XAMPP version: 20. Nov 2006 XAMPP 1.5.5 beta 2
PHPInfo(): $_ENV['OPENSSL_CONF'] = C:\OpenSSL\bin\openssl.cnf
PHPInfo(): OpenSSL support enabled
PHPInfo(): OpenSSL Version OpenSSL 0.9.8d 28 Sep 2006

Now, it seems like OpenSSL support is enabled in XAMPP by default, but I am still getting that error.

Please advise what can be done to use the ftp_ssl_connect() with XAMPP. I was unable to find any information regaurding this function in this formum in English.

Thanks in advance!
jcony
 
Posts: 2
Joined: 24. March 2007 18:10

Postby Wiedmann » 24. March 2007 18:30

For Windows you must compile your own PHP binaries to support this function.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby jcony » 24. March 2007 19:25

Anyone that can link me to a PHP5 binary that support this? I have found PHP4 ones, but no ones with valid links for PHP5. Thanks.
jcony
 
Posts: 2
Joined: 24. March 2007 18:10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 41 guests