Forum Moderators: coopster

Message Too Old, No Replies

Zipping and raring with php

         

rokec

7:29 pm on Sep 19, 2006 (gmt 0)

10+ Year Member



How can i zip or rar a file with php?

dreamcatcher

8:26 pm on Sep 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi rokec,

Take a look on the PHP Classes Repository, they have some pretty useful zip classes there:

[phpclasses.org...]

dc

RonPK

9:50 pm on Sep 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In case the classes are to much work, you can have PHP call a zip tool installed on your server using for example the exec() [php.net] method:

exec("zip zipfile.zip filetozip.txt");

That should call the zip application on a Linux server - if present.

coopster

9:59 pm on Sep 19, 2006 (gmt 0)