Zip File Creation in PHP

Zip File Creation in PHP

Zip File Creation in PHP

   //ZIP the files in the folder
   $zip = new ZipArchive;
   if ($zip->open("name.zip",  ZipArchive::CREATE)) 
    {
      $zip->addFile("$id/$id.xml", "$id.xml"); 
      $zip->addFile("$id/$id.mp4", "$id.mp4");   
      $zip->close();    
       echo 'Archive created!'; 
     }


0 Response to "Zip File Creation in PHP "

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel