News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Working with Zip Archives in PHP
April 07, 2010 @ 08:44:54

On PHPBuilder.com today Octavia Anghel has written up a tutorial about working with zip archive files directly from PHP. The key is the Zip Archive extension that you can get from the PECL repository if you have a version older than PHP 5.2. Those on PHP 5.2 or higher already have it bundled in.

I explain how to manage Zip archive files in PHP using a number of demo PHP applications. You'll learn how to create Zip archives, add files and folders inside the archive from a string and from a given path, delete and rename files using their indexes and names and list the ZipArchive object details (number of files, filenames, comments, statusSys, etc.).

Complete code for the examples (along with a few screenshots) are included in the tutorial as well as a link to download the source to get you started even faster.

0 comments voice your opinion now!
archive zip tutorial pecl extension


blog comments powered by Disqus

Similar Posts

DashExamples.com: Add a Content Security Policy(CSP) to your Web Site with PHP

Elizabeth Smith's Blog: Treeviews and Cell Renderer Properties - Practical PHP-GTK

Twilio Blog: How to Build an MMS Ticketing System Using PHP, Laravel and Twilio

Joshua Thijssen's Blog: Using vagrant and puppet to setup your symfony2 environment

Content with Style Blog: Deploying PHP applications with Vlad and SVN


Community Events





Don't see your event here?
Let us know!


symfony language voicesoftheelephpant series version laravel opinion podcast release composer community package install security tool interview introduction library framework update

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework