Web Hosting Talk







View Full Version : tar/untar zip/unzip


askids
09-15-2002, 02:38 PM
Hi,

I was wondering that if were to zip my entire website(or say some files) and upload it, how will i be able to unzip/untar it there. If I had telnet/ssh, it would have been easier. But without it how is it possible to do do?

Zipping and uploading will save me lot of time

Does any ftp client provides such feature?

Please help

davidb
09-15-2002, 03:25 PM
I guess you could write a script and have it try to gunip the site

bandwidth
09-15-2002, 04:11 PM
I guess you could write a script and have it try to gunip the site

yea. I dont really know PHP, but this should work:

<? `tar -zxvf file.tar.gz` ?>

put that in a php file and run it from your browser.

loopforever
09-15-2002, 06:33 PM
If safemode is off the above command will work - just dont stop or close the browser window once you started it.

You also wont need the 'v' in the command, because it is not outputting anything to your browser window, sooo...just do this:

<? `tar -zxf file.tar.gz` ?>