backup a folder to a zip file
backup a folder to a zip file
backup a folder to a zip file
<?php
//download library from http://www.phpconcept.net/pclzip/index.en.php#download
include(’pclzip.lib.php’);
//zip file name
$new_zip= new PclZip(’backup.zip’);
//backup theimages folder
$file_list = $new_zip->create(’images/’);
if ($file_list == 0)
{
die("Error : ".$new_zip->errorInfo(true));
}
echo "Successfully created zip file";
?>
Related posts:
- extract a zip file to a folder Learn more about extract a zip file to a folder...
- list files in a folder in a text file Learn more about list files in a folder in a...
- This program deletes a folder Learn more about This program deletes a folder by visiting...
- How To Get A Php File To Be Included Across Files In Different Directories? Currently I have created some php based webpages and uploaded...
- open a zip file and display file information Learn more about open a zip file and display file...
Related posts brought to you by Yet Another Related Posts Plugin.

