FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Zip archive extraction with PHP





sergi
Is it possible to handle zip file extraction with PHP? It would be great to upload one single zip file to the server and run a script that would extract all data to server folders without need to upload all files one by one. This would greatly save my time.
Atomo64
You can use the zip PHP extension functions, or a class:
http://www.php.net/zip
and one of the tons of classes:http://www.phpclasses.org/browse/package/945.html
sonam
You can use FTP it is easyer then upload and extract files with ZIP.

SOnam
JayBee
sonam wrote:
You can use FTP it is easyer then upload and extract files with ZIP

it is not easier, because when you upload many small files FTP self trafic is greater than amount of your data (overhead is so huge and there is nothing like keepalive connection like in HTTP)

for uploading on Frihost, you can use CPanel, it has this function

or you can use this script PclZIP
jamez
You can use net2ftp.com ftp client (web based), upload your files in their bulk archive upload form, and just wait for a second to upload your file, and you will be amazed it was extracted instantly.. you could install it to your own server if you want because they do offer download of their script..
n0obie4life
JayBee wrote:
sonam wrote:
You can use FTP it is easyer then upload and extract files with ZIP

it is not easier, because when you upload many small files FTP self trafic is greater than amount of your data (overhead is so huge and there is nothing like keepalive connection like in HTTP)

for uploading on Frihost, you can use CPanel, it has this function

or you can use this script PclZIP


I would like to state that Directadmin only untars files with the .tar.gz extension and does not extract .zip files.
JayBee
n0obie4life wrote:
JayBee wrote:
sonam wrote:
You can use FTP it is easyer then upload and extract files with ZIP

it is not easier, because when you upload many small files FTP self trafic is greater than amount of your data (overhead is so huge and there is nothing like keepalive connection like in HTTP)

for uploading on Frihost, you can use CPanel, it has this function

or you can use this script PclZIP


I would like to state that Directadmin only untars files with the .tar.gz extension and does not extract .zip files.


OK OK
but its easy to pack files as .tar.gz insted of .zip Wink
Related topics
Download IPB 2.0.4
Script Unzip (very cool)
Easy way to do sidepanel links?
how to upload a folder?
[help] making Solaris 10 DVD
Choosing a Distro
FireFox error on close
PHP-Nuke 7.8 Upload
Atrocious Poetry Beyond Belief
Can't extract a file from a Zip archive!!!
Use php to extract archives
open/edit files within a file
PHP inside HTML tags?
Help me upload these files (250 Frih$)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.