Search code examples
phpsymfonysslftps

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 ...


Solution

  • 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