Unzip a file using PHP Script on Server





We use zip files when we need to upload large projects on the server, zip files are compressed and takes less time to upload on server than unzip folder. After uploading zip file on server we need to unzip there. For this purpose control panel provide functionality to extract zip files.


Also we can do this using a php script.

unzip php script that can perform following functions.


  1. List out all the zip files in the same directory where php script exists.
  2. Can unzip zip file.

Download unzip.php, and upload " unzip.php" in your destination folder on your server or Localhost.


Snapshot of RUNNING Script on LOCAL HOST.





Download PHP File:  unzip.php

Nayab

"Thinking should become your capital asset, no matter whatever ups and downs you come across in your life."

No comments:

Post a Comment