コード例 #1
0
ファイル: ftp.api.php プロジェクト: minger11/Pipeline
 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;
 }