PHP extract

02bunced's picture

He has: 412 posts

Joined: May 2005

I am working on a CCMS and I have a section for installing new modules. Now, I want it so that the files are either .zip or .tar.gz. I don't need both standards, so I will choose one. What I want to learn, please, is how, once I've uploaded the files, how do I unzip them on the server using PHP. Any help will be much appreciated. I can't get it to work with the shell_exec() function, so I am desperate.

David

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

I have never tried this, but for .ZIP, see http://www.php.net/zip and for .gz see http://www.php.net/zlib

-Greg

02bunced's picture

He has: 412 posts

Joined: May 2005

Nothing there seems to work. Sad Thanks for trying, though!

02bunced's picture

He has: 412 posts

Joined: May 2005

Sorry - bump!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.