News Feed
Sections




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

Zend Developer Zone:
Working with RAR, LZF and BZ2 Compression Formats in PHP
November 03, 2008 @ 12:03:01

The Zend Developer Zone has posted this new tutorial from Vikram Vaswani covering the use of different archive formats (like RAR, LZF and BZ2 compression methods) from inside PHP.

When it comes to dealing with different file formats, it's hard to faze PHP. XML documents, PDF files, JPEG images, MP3 media...you name it and, chances are, there's a PHP extension to handle it. And so it is with compression formats like RAR, LZF and Bzip2 - although these archive formats are far less common today than the ubiquitous TAR and ZIP formats, they are still actively used by many applications and projects, and continue to be supported in PHP via PECL extensions.

He pulls in a few PECL extensions to give PHP the power it needs, both for unix-based systems and Windows DLL files. He includes some sample code showing how to open up a rar file and list the contents inside as well as extract the files themselves. And, of course, code examples for compressing files into a new archive is included too.

0 comments voice your opinion now!
rar lzf bz2 compression format pecl extension dll windows tutorial


blog comments powered by Disqus

Similar Posts

RegDeveloper.co.uk: Build your PDF and Excel reports with PHP

Abhinav Singh's Blog: MEMQ : Fast queue implementation using Memcached and PHP only

Rob Allen: Sending an HTML with text alternative email with Zend\Mail

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 2)

Ilia Alshanetsky's Blog: Filter Extension Revamped (and PHP 5.2 news)


Community Events





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


code testing introduction threedevsandamaybe unittest framework developer opinion list language install configure wordpress podcast community series interview laravel refactor release

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