How to use PHP & Extract Zip file This is Learn / tutorial php programming how to using PHP and Extract Zip file.
ShotDev Focus:
- PHP & Extract Zip file
Example
php_zip_extract.php
<html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <? $ZipName = "myfile/myzip.zip"; $DesName = "myfile/"; require_once("dUnzip2.inc.php"); // include Class $zip = new dUnzip2($ZipName); // New Class $zip->unzipAll($DesName); // Unzip All //$zip->unzip("shotdev1.txt", $DesName."/shotdev1.txt"); // Unzip single file echo "Extract to Folder <b>$DesName<b>"; ?> </body> </html>
Create a php file and save to path root-path/myphp/
Run
http://localhost/myphp/php_zip_extract.php
Screenshot