Beispiel #1
0
 function ftp_ssl_connect($host, $port = 21, $timeout = 0)
 {
     // Opens an Secure SSL-FTP connection
     if ($timeout < 1) {
         $timeout = 90;
     }
     $ftp = new FTP();
     if (!$ftp->ssl_connect($host, $port, $timeout)) {
         return false;
     }
     return $ftp;
 }