Click to See Complete Forum and Search --> : Unzip with exec,passthru..?


xavikevicious
November 29th, 2004, 08:02 PM
hi everyone

i want to unzip one file in unix server : unzip file.zip

i have tried with exec("unzip.zip"), passthru("unzip.zip") and nothing.

can anyone to help me? thanks

xavik

khp
November 29th, 2004, 08:17 PM
Something like
exec("/usr/bin/unzip file.zip")
Should work.

This ofcourse assumes that unzip is located in /usr/bin. You can find out where unzip is located by running 'which unzip' in a shell.

xavikevicious
November 30th, 2004, 02:14 PM
cool,

thanks at all

xavik