Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

wwwstores
software directory
low cost magazines

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


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";
?>