Learning & Integrating web technology and code help directory

How to use PHP & Extract Zip file

No comments
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
  1. <html>  
  2. <head>  
  3. <title>ShotDev.Com Tutorial</title>  
  4. </head>  
  5. <body>  
  6. <?  
  7. $ZipName = "myfile/myzip.zip";  
  8. $DesName = "myfile/";  
  9. require_once("dUnzip2.inc.php"); // include Class  
  10. $zip = new dUnzip2($ZipName); // New Class  
  11. $zip->unzipAll($DesName); // Unzip All  
  12. //$zip->unzip("shotdev1.txt", $DesName."/shotdev1.txt");  // Unzip single file  
  13. echo "Extract to Folder <b>$DesName<b>";  
  14. ?>  
  15. </body>  
  16. </html>  
Create a php file and save to path root-path/myphp/
Screenshot
PHP Extract Zip file

No comments :

Post a Comment