Zip archive to build files in PHP
here i am in the search of solution for my problem .i am new learner for php along this i am working on friendly project where i need zip archive to build files script for Php .please can any one can help me here to come out of this trouble ?
Re: Zip archive to build files in PHP
well here is script for you but not sure about, it will work 100% for you .!
n this script, it is possible to automatically zip archive to build files on the Web or 'virtual' files. This zip file via an internal function immediately as a clean download to be reported (via HTTP headers).When creating a new body may be given a root directory. This is the folder where the files on the disk should be sought.It is also possible to zip files in the temporary folder of the OS to be building in a location that you specify. The zip archive can later be retrieved.
<? php / / Set a custom root directory. / / It is also possible to simply use this code: / / $ Z = new ZipWrap (), $ Z = new ZipWrap (MyRoot / ') / / Create a new archive test.zip / / It is possible to no name. The file is generated in the temporary folder. This can be done through: / / $ Z-> Create (), $ Z -> create ( 'test.zip');
/ / Add file file.php, and the folder actions. $ Z -> Add ( 'file. php ',' action ');
/ / Add a' virtual 'file, one that was not on the hard disk. $ Z -> AddVirtual ( "info.php", "</? phpnphpinfo () n? /> ") / / Add the additional and extra folders / tools when actions. $ Z -> AddDirectory ( 'actions / extra / tools /');
/ / Set the download file in FileManager.zip. $ Z -> SetName (File Manager), / / This function ensures that the PHP script itself before this as a. zip file is downloaded by the visitor. $ Z -> download ();?>
|Tags: coding, php, zip|
|Thread Tools||Search this Thread|
|Similar Threads for: "Zip archive to build files in PHP"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Nintendo 3DS shows no files inside zip archive||Calvert||Portable Devices||5||02-04-2011 11:00 AM|
|How do you archive files of different formats in Java ?||GOOL||Software Development||4||13-01-2011 10:14 PM|
|How to use RAR archive in PHP?||DANIEL 602||Software Development||5||04-03-2010 05:14 AM|
|Recoving 7 Zip Archive - Cannot open file 'xampp.7z' as archive||GodsDead||Vista Help||4||23-10-2009 08:26 AM|
|How to extract files from rar archive in ubuntu?||Baker||Operating Systems||3||10-03-2009 10:32 AM|