Simple script to upload zip file and unzipped on webserver

| Last Updated: | In: Freebies, PHP Tutorial

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 the founder of and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.

You may also like:

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free 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...