Beispiel #1
0
 public static function FTP_CheckDir($dir)
 {
     $conn_id = gpFiles::FTPConnect();
     $dir = gpFiles::ftpLocation($dir);
     if (!ftp_mkdir($conn_id, $dir)) {
         return false;
     }
     return ftp_site($conn_id, 'CHMOD 0777 ' . $dir);
 }