View Full Version : How to install ZIP module for PHP ?

01-02-2006, 03:30 PM
Hi all,

I Googled a lot but could not find a tutorial on how to install the ZIP module for PHP.
I have Apache + PHP 5 + MySQL

any help is welcome !

HNY :thumbsup:

01-02-2006, 03:39 PM
If you just want to make zip files available for download from the server, just zip them on your PC and upload them to the server. If that isn't what you're trying to do, maybe you should explain further why you're asking such a question.

01-02-2006, 04:08 PM
Thanks for answer,

I installed a set of scripts (OCS-NG) and the latest version needs ZIP capability. I suppose to ZIP datas or so....
So my need is that PHP scripts must ZIP and/or UNZIP datas ..

When i launch the script, it says that ZIP module is needed.

I hope it is precise enough...

01-02-2006, 04:15 PM
It is possible to create zipfiles on the server without the zip extensions - ultimately it's just binary data in a file. Check this - http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=957&lngWId=8

01-02-2006, 04:17 PM

01-02-2006, 04:29 PM
You could also get a program that can zip via the command line and then use exec(). http://us3.php.net/exec

01-02-2006, 04:39 PM
Both of them use zlib though.

01-02-2006, 04:52 PM
What I posted doesn't - no extra libraries ar required to use it.

01-02-2006, 05:13 PM
... and search that article's code for "gzcompress("

Velox Letum
01-02-2006, 06:44 PM
Install the ZIP module? Download it from PECL, put it in your modules directory, and add a line in php.ini.

01-02-2006, 09:37 PM
I just might add that zlib should be (WINDOWS) enabled by default. The zip module can only read zip files.

01-03-2006, 07:03 AM
You can untaged comment at extension at php.ini file.
Also must have file for zip

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum