News Feed
Sections




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

NETTUTS.com:
How to Open Zip Files with PHP
December 31, 2008 @ 12:04:06

The NETTUTS.com site has a new tutorial/screencast posted looking at their method for opening up uploaded zip files with PHP:

ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task...that's what we're going to use!

They create a simple form with one field - a file input - and write some basic PHP around it. The script ensures that it was a zip file that was uploaded (based on the mime type) and passes it through a ZipArchive class to do the hard work. This class and the rest of the source can be downloaded from the site.

0 comments voice your opinion now!
open zip file tutorial upload mime type download source


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Watermarks in our images with PHP and mod_rewrite

Community News: PHPBenelux 2013 Call for Papers Opens

DevShed: Completing an Extensible Website Engine with PHP 5

Matthew Weier O'Phinney's Blog: ZF2 Forms in Beta5

Gennady Feldman's Blog: Installing Oracle Instant Client 11g and PECL OCI8 (Part 2)


Community Events





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


list update opinion community language package api zendserver introduction series symfony podcast interview install deployment framework library release laravel tips

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