Forum Moderators: phranque

Message Too Old, No Replies

Upload *.zip via FTP and unzip it. How?

I don't know how to unzip files over hoster's web server!

         

Wai_Wai

12:54 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



Upload *.zip via FTP and unzip it. How?

Hi.
I would like to upload the zipped file via FTP on my hoster's web server.
Then I unzip it. It is to do with time-saving and efficient upload.
Currently I'm using Dreamweaver to upload files.

But I don't know how to unzip a file on a web server.
How to do, or any programs which can help me to do so?

Thanks.

Angelis

1:04 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



Only way I would know how to do it is if you have shell access on a Linux server.

If you have php, perl or asp installed you can probably run a shell command to unzip the file on the server.

If you do have any of those installed im sure someone can help you figure it out.

Wai_Wai

3:30 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



I don't know if shell access is allowed.
How to check?

Info of my web server:
Operating system Linux
Kernel version 2.4.21-32.0.1.ELsmp
Machine Type i686
Apache version 1.3.33 (Unix)
PERL version 5.8.6
PHP version 4.4.0
MySQL version 4.0.25-standard
cPanel Build 10.6.0-CURRENT 157
Theme cPanel X v2.5.0

Angelis

3:34 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



If you have php installed you can try putting this code in a page (modify where applicable).

Unless you make a form for uploading a file and unzipping it though its not going to be of great use.

<?php
$unzip = shell_exec("unzip filename.zip");
?>

Wai_Wai

8:57 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



Thanks. I will try it out.