Link to home
Start Free TrialLog in
Avatar of wjdashwood
wjdashwood

asked on

Decompress/deflate/unzip compressed file

I have a reseller account but do not have shell access and I frequently upload via FTP large php applications which take forever because of all the small files. It would be much better if I could upload a zip or gzip file and then execute a command to decompress the file. I believe this is possible with shell commands but is it possible to do this in PHP or by another method available to me?

Many thanks!
ASKER CERTIFIED SOLUTION
Avatar of alain34
alain34
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wjdashwood
wjdashwood

ASKER

Actually this simple line of code works fine for me, which was based on a message on the line alain34 gave.

<?php
shell_exec("unzip $zip_file");
?>

Thanks for both answers!
the solution is really depending on your installation and platform.
Is it me or is EE having problems today?

Yes I guess I must have some zip libraries already installed with my host.
yes EE is difficult to access at time.
Could you close the question if your are happy with any answer?
Yay! Finally managed to award points. EE seems to be working for me again.