PHP extract
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 posted this at 20:24 — 17th July 2005.
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 posted this at 06:19 — 18th July 2005.
He has: 412 posts
Joined: May 2005
Nothing there seems to work. Thanks for trying, though!
02bunced posted this at 15:25 — 20th July 2005.
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.