Haruhi

2008年8月31日星期日

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
  1. Upload pclzip.lib.php and index.php to your server
  2. Create a directory named “uploads” in the same place and chmod it 0777
  3. Point your browser to index.php
  4. Upload your zip file and find it in the “uploads” directory
Easy huh!
 PHP - UnZip on Server
PHP Class to create and manage ZIP files taken from http://www.phpconcept.net

标签:

0 条评论:

发表评论

<< 主页

测边栏大幅广告300x250

订阅feed

内测边栏长幅广告160x600

技术支持

© 2007 Haruhi

Powered by Blogger.com 

Template by wuyuntao

外侧边栏长幅广告120x600

版权声明

Creative Commons License

本博客采用 知识共享署名-非商业性使用-禁止演绎 2.5进行许可。