web 2.0

How to use PHP & Extract Zip file

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

PHP Extract Zip file
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.