Re: Uncompressing files on server
| From: | Richard Lynch | Date: | Mon, 20 Dec 2004 16:00:05 +0000 |
| Subject: | Re: Uncompressing files on server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204708@lists.php.net to get a copy of this message | ||
Josh wrote:
> I have some PHP files from a content management system. I uploaded the
> compressed files to the server, but how do I un-compress them now? I am
> using Filezilla. Can it be done, or do I have to uncompress the file on
> my
> computer and then upload?
If you have a shell account (SSH or telnet) login on the webserver, you
should be able to:
1. Login to the web server.
2. 'cd' to the directory containing the compressed file.
3a. gunzip NAMEOFCOMPRESSEDFILE.gz
----- OR ------
3b. unsip NAMEOFCOMPRESSEDFILE.zip
4. If there is a '.tar' file now, do:
tar -xvf NAMEOFCOMPRESSEDFILE.tar
If it's not a .gz or a .zip file, then how you uncompress it, or if you
*can* uncompress it depends on what the compression is, and what software
is or isn't on your webserver.
PS If your webserver is a Windoze box, you're on your own, kid.
--
Like Music?
http://l-i-e.com/artists.htm