Page 1 of 1

Unzipping with php...

Posted: Sun Dec 16, 2007 5:14 pm
by jkashu
How do I unzip a compressed folder into another directory:

Code: Select all

exec("unzip /otherdirectory/test.zip");
I tried the above line, but it only unzips the version of "test.zip" that is in the current directory.

Thanks!

Posted: Sun Dec 16, 2007 6:05 pm
by John Cartwright
There are a ton of packages out there to do this without having to have zip compiled.

Simply type in google "php unzip", or try this http://www.vladimirated.com/downloads/unzip.lib.phps

Posted: Sun Dec 16, 2007 10:47 pm
by feyd
Including a class or two in Code Snippets.....