Forum Moderators: coopster

Message Too Old, No Replies

Create ZIP class for MAC and PC

         

optik

2:39 pm on Jul 17, 2009 (gmt 0)

10+ Year Member



Does anyone know of a class or function that will create a zip file from a list of files or folders that works on PC and MAC.

I have found one but it only works on PC.

andrewsmd

6:07 pm on Jul 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not for sure if mac is compatible with zip because I'm not a mac guy. However you could tar the file because I'm pretty sure the mac os is unix based. Don't quote me on that though.

bkeep

7:01 pm on Jul 17, 2009 (gmt 0)

10+ Year Member



this seems like a good answer

In order to read and write ZIP files with PHP, your PHP build must include support for ext/zip. On UNIX, this is accomplished by adding the --enable-zip option to the configure script when building PHP. On Windows, a pre-built DLL named php_zip.dll is included with the Windows PHP distribution, and must be activated in the Windows php.ini configuration file. Read more about this at [php.net...]

source: [devzone.zend.com...]

optik

2:21 pm on Jul 23, 2009 (gmt 0)

10+ Year Member



Some how I has missed the Zip Archive page on php.net, the in built class works fine on mac and pc.

andrewsmd

2:25 pm on Jul 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I didn't know macs could read zip files. Thanks for the input.