PDA

View Full Version : How to unpack files on the server?


David Byrnes
3-7-05, 10:15 PM
I'm running into a major problem for my site. I need to upload a large (10000 files) package to a directory on my site. The total size of all files is 30MB, although compressed it's about 12MB. I've tried various FTP programs, all set for active FTP, and about 1 hour into the upload, errors begin. Sometimes the connection is lost, other times I get odd errors, like IP address Sytax incorrect. Is there any way to upload the files in a compressed format, then uncompress in the correct directory, and if so, how?

musox
3-7-05, 11:41 PM
if you can get the file on to powweb's server, you can always execute a pho "system" command to unzip the file.

- MusOX

David Byrnes
3-8-05, 12:01 PM
Okay, so how do I do this? Y'know, something I'd like to see here at Powweb is the ability to uncompress .tar or .zip files via the Sitemanager's File Manager function.

BerksWebGuy
3-8-05, 12:07 PM
You can use a php script:


<? system( "tar xzvf filename*.tar.gz" ) ?>

NMS
3-8-05, 01:45 PM
You might want to take a look at this thread - http://forum.powweb.com/showthread.php?t=42819&highlight=untar

jorgfe
3-10-05, 05:29 AM
Okay, so how do I do this? Y'know, something I'd like to see here at Powweb is the ability to uncompress .tar or .zip files via the Sitemanager's File Manager function.
Why don't you just use a free PHP-based terminal program to type your commands into?

David Byrnes
3-12-05, 10:14 AM
You can use a php script:


<? system( "tar xzvf filename*.tar.gz" ) ?>


This worked great. Thanks