Page 1 of 1

Call to undefined function ftp_ssl_connect()

PostPosted: 24. March 2007 18:28
by jcony
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!

PostPosted: 24. March 2007 18:30
by Wiedmann
For Windows you must compile your own PHP binaries to support this function.

PostPosted: 24. March 2007 19:25
by jcony
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.