Zip File Creation in PHP Written By Yempally Mahesh Kumar //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!'; } Share this post
0 Response to "Zip File Creation in PHP "
Post a Comment