PHP Classes

PHP Extract Zip File: List and extract Zip files to a selected directory

Recommend this page to a friend!
  Info   View files Documentation   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-03-16 (8 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 22 All time: 11,062 This week: 138Up
Version License PHP version Categories
extract-files 1.0GNU General Publi...5PHP 5, Files and Folders, Compression, G...


This package can list and extract Zip files to a selected directory.

It provides a Web page script that can show a form in the .zip files in the current server-side directory and the existing list of directories.

The script can extract the .zip file into the directory selected by the user.

Picture of Joko Prasetyo
  Performance   Level  
Name: Joko Prasetyo <contact>
Classes: 4 packages by
Country: Indonesia Indonesia
Age: 53
All time rank: 433773 in Indonesia Indonesia
Week rank: 398 Up11 in Indonesia Indonesia Up
Innovation award
Innovation award
Nominee: 2x


PHP Extract Files using PHP function ZipArchive.

If the directory there are some zip or gz file extension, you can select the file you want extracted into the specified directory.

You can edited at this line following:

        if (pathinfo($filename, PATHINFO_EXTENSION) === 'zip' || pathinfo($filename, PATHINFO_EXTENSION) === 'gz') {

All files and scripts under licenses ( GNU GPL v2 or later).

  Files folder image Files  
File Role Description
Accessible without login Plain text file extract-files.php Example Example script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:11,062
This week:138Up