UnZip on Server - using PHP
UnZip on Server - using PHP
UnZip on Server - using PHP
Language: PHP
Platform: linux, windows, freebsd, sun
Ever had to upload 5452 small files averaging 50mbs? Ever had to upload a single 50MB file? No, never! Well here’s another useless fact - “A new TCP connection is required for every file uploaded by FTP. This connection takes time to open and close.” Therefore, it is much more time consuming trying to upload 5242 files than 1 if they average out the same file size.
Once a collegue told me he had a 10 meg script to upload and it should take about 20 minutes. How wrong was he - it took jus less than an hour. Upon commencing to moan I told him to “Zip it up”. He inadvertedly thought it I was being rude!
Anyway now you don’t need to worry about uploading file by file just “Zip it up” and with this script click browse and unzip it on your server. Then just do what you need to on your server.
How to use
PHP - UnZip on Server
PHP Class to create and manage ZIP files taken from http://www.phpconcept.net
UnZip on Server - using PHP
Language: PHP
Platform: linux, windows, freebsd, sun
Ever had to upload 5452 small files averaging 50mbs? Ever had to upload a single 50MB file? No, never! Well here’s another useless fact - “A new TCP connection is required for every file uploaded by FTP. This connection takes time to open and close.” Therefore, it is much more time consuming trying to upload 5242 files than 1 if they average out the same file size.
Once a collegue told me he had a 10 meg script to upload and it should take about 20 minutes. How wrong was he - it took jus less than an hour. Upon commencing to moan I told him to “Zip it up”. He inadvertedly thought it I was being rude!
Anyway now you don’t need to worry about uploading file by file just “Zip it up” and with this script click browse and unzip it on your server. Then just do what you need to on your server.
How to use
- Upload pclzip.lib.php and index.php to your server
- Create a directory named “uploads” in the same place and chmod it 0777
- Point your browser to index.php
- Upload your zip file and find it in the “uploads” directory
PHP - UnZip on Server
PHP Class to create and manage ZIP files taken from http://www.phpconcept.net
标签: Web Development
0 条评论:
发表评论
<< 主页