is it possible to connect to an ftp-tls server (port 21) through the php cURL functions?

my first attempt is this:
$res = curl_init("ftp://example.com");
curl_setopt($res,CURLOPT_FTP_SSL,CURLFTPSSL_ALL);
curl_setopt($res,CURLOPT_PORT,21);
curl_setopt($res,CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($res,CURLOPT_SSL_VERIFYHOST,FALSE);
//curl_setopt($res,CURLOPT_SSLVERSION,CURL_SSLVERSION_TLSv1);
//curl_setopt($res,CURLOPT_FTPSSLAUTH,CURLFTPAUTH_TLS);
curl_setopt($res,CURLOPT_FTP_USE_EPSV,TRUE);
curl_setopt($res,CURLOPT_USERPWD,"user:**********");
curl_setopt($res,CURLOPT_INFILE,$file);
if (curl_exec($res))
{
echo "<br />connect succeeded<br />";
}
else echo "connect failed: ".curl_error($res)."<br />";
print_r(curl_getinfo($res));

curl_close($res);

The server itself is set up properly (it seems): This is a readout of a successful connection using CoreFTP:

USER user
331 User name okay, need password for user.

PASS **********

230 User logged in, proceed.

SYST

215 UNIX Type: Apache FTP Server

Keep alive off...
PWD

257 "/" is current directory.

PBSZ 0

200 Command PBSZ okay.

PROT C

200 Command PROT okay.

PASV

227 Entering Passive Mode (a,b,c,d,e,f)

a.b.c.d -> w.x.y.z

LIST

thank you,
n8

    Write a Reply...