It can be a real pain to download a ZIP file, then be forced to unZIP it locally and use FTP to upload all the individual files. Well, if you have PHP 5.2 or greater, and your host has installed the ZIP extension, then you can upload the ZIP file to your server, and use this short program to unZIP the files to the location of your choice! Here's the program, which I will call
Please log in to view this content.
To use the program upload the ZIP file (which we will call
sample.zip) to the same directory where
unzip.phpresides (for this example, the root directory). Then, from your browser, enter this URL:
Code: Select all
sample.zipfile will be unZIPped into the
/newzipdirectory. If you don't specify a destination directory, the ZIP file will be unZIPped into the
I hope this saves you some time. And if anyone decides to improve on the program, I would appreciate your sharing it here!