Create a Zip File using PHP - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21) +---- Thread: Create a Zip File using PHP (/showthread.php?tid=2639) |
Create a Zip File using PHP - zone - 11-07-2009 Credits and Source: http://www.dreamincode.net/ Name: Create a zip file in PHP Description: This is a snippet for creating a zip file with PHP using the ZipArchive class Snippet: PHP Code: function zip_files($files_to_add = array(), $save_to = '', $overwrite_existing = false) Instructions: Requirements: PHP 4: The bundled PHP 4 version requires » ZZIPlib, by Guido Draheim, version 0.10.6 or later PHP 5.2.0 or later: This extension uses the functions of » zlib by Jean-loup Gailly and Mark Adler. Thankyou for reading. Be happy always |