Simple script to upload zip file and unzipped on webserver

| Last Updated: | In: Core php, Freebies

Hello Friend, hope you are doing good. Today i am going to share a simple php script which will upload your zip file to the web server and have it extract to your destination folder. It will saves your tons of time, think only of uploading. A useful php script to unzip the zip folder on your web server.

Basically it extracts the zip file into the directory you specify. Make sure the directory you want to extract it to has write permissions.

unzip php scipt

Download      Demo

Add Css and JS files

Include below CSS and JS files in your file before tags.


PHP Code

Simple script to upload a zip file to the web server and have it unzipped to destination folder. It will Saves tons of time, think only of uploading. The function rmdir_recursive() will extract .zip folder on your web server and after extract delete that .zip folder from your server using unlink("$dir/$file") function.

Download      Demo

Tags: , , , , , , , , ,

About: Prem Tiwari

Prem Tiwari is founder of and Software developer from New Delhi (India). Follow Prem's development codes on facebook, and make sure you check out for the latest in web development related Tips with the complete code.

You may also like:

Follow us!

Get Free Access of 350+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Learn how to implement security guideline in your WordPress site...


Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...