简体   繁体   中英

Symfony2 : Undefined Function “ftp_ssl_connect”

I want to connect my Symfony2 App with a FTPS :

$ftp = ftp_ssl_connect("ftps://remote.platform.pro", 990);

But I have this error :

UndefinedFunctionException: Attempted to call function "ftp_ssl_connect"

It seems that Symfony does not recognize this function, which seems crazy! Is there a service or other specific function to use instead?

__ My work environment __

  • Windows 7
  • XAMPP 3.2.1
  • PHP 5.5.6
  • Symfony 2.4.2 *

I found nothing in forums and documentation so any help would be appreciated ...

Have you enabled OpenSSL ?

To do this, you have to open php.ini and remove the semicolon to:

;extension=php_openssl.dll

Otherwise you probably find an answer here :

Stack Question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM