FTP FILE BACKUP RECURSIVELY Auto Zipping All files Inside Directory Auto Send Zipped files to FTP at once Auto Cleaning sent Zipped files on local storage <?php define("user", "username_ftp", true); //Your FTP Username define("password", "password_ftp", true); //Your FTP Password define("host", "host_ftp", true); //eg: ftp.drivehq.com define("port", "21", true); //default ftp port is 21 /*** Script_By_Dimas_Lanjaka ***/ if (defined("user") && defined("password") && defined("host")){ // Get real path for our folder// Get real path fo $rootPath = realpath(__DIR__); //array_map('unlink', glob("$rootPath*.zip")); // Initialize archive object $zip = new ZipArchive(); $cdate = str_replace('.', '-', $_SERVER['HTTP_HOST']); $zip->open($cdate . '.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); //