Results 1 to 2 of 2

Thread: Zip archive to build files in PHP

  1. #1
    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 ?

  2. #2
    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 ();?>

Similar Threads

  1. Nintendo 3DS shows no files inside zip archive
    By Calvert in forum Portable Devices
    Replies: 5
    Last Post: 02-04-2011, 11:00 AM
  2. How do you archive files of different formats in Java ?
    By GOOL in forum Software Development
    Replies: 4
    Last Post: 13-01-2011, 11:14 PM
  3. How to use RAR archive in PHP?
    By DANIEL 602 in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 06:14 AM
  4. Replies: 4
    Last Post: 23-10-2009, 08:26 AM
  5. How to extract files from rar archive in ubuntu?
    By Baker in forum Operating Systems
    Replies: 3
    Last Post: 10-03-2009, 10:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,702,974.68377 seconds with 17 queries