...

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



tk5ep
01-02-2006, 04: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:

vinyl-junkie
01-02-2006, 04: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.

tk5ep
01-02-2006, 05: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...

brothercake
01-02-2006, 05: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

thesavior
01-02-2006, 05:17 PM
http://pear.php.net/package/File_Archive

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

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

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

marek_mar
01-02-2006, 06:13 PM
http://pl2.php.net/gzcompress
... and search that article's code for "gzcompress("

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

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

zombbb
01-03-2006, 08:03 AM
You can untaged comment at extension at php.ini file.
Also must have file for zip
---------------
regards
www.takedom.com



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum