Php zip

software development

#1

Hey guys,

Recently I have been trying to implement http://au.php.net/zip but I have found out from the Support guys that it involves have php compiled with --enable-zip which isn’t possible. A quick look through the Wiki returns the following: http://wiki.dreamhost.com/PECL_Zip but that is beyond my scope of understanding right now.

The Support tech recommended I ask if anyone else has managed to find another way of creating Zip files without using the inbuilt Zip class of PHP5.


#2

It’s possible.

This ziptest.php reads the file data from this zipfile

Sources in the zip.

Maximum Cash Discount on any plan with MAXCASH


#3

I have copied your file exactly as it was and received an error.
Page is http://4cache.lankyland.com/test/ziptest.php
Error is Fatal error: Call to undefined function zip_open() in /home/.grigoriy/lankyland/4cache.lankyland.com/test/ziptest.php on line 2


#4

You have to compile PHP first using the script in that zip :wink:

http://php526.dreamhosters.com

Maximum Cash Discount on any plan with MAXCASH


#5

oh i see, i havent tried to compile php at all myself. so i just run that script from the bash shell?


#6

Yep :slight_smile:

Edit the DOMAIN variable to reflect your domain (or subdomain) and run it from shell.

Maximum Cash Discount on any plan with MAXCASH