Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Zip archive to build files in PHP

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 24-01-2009
Member
 
Join Date: Jan 2009
Posts: 37
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 ?

Reply With Quote
  #2  
Old 24-01-2009
Member
 
Join Date: Dec 2008
Posts: 207
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 ();?>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:54 PM.