Delete All files from the ZIP in php Written By Yempally Mahesh Kumar $zips = new ZipArchive; if ($zips->open("ExportedActivities.zip", ZipArchive::CREATE)) { for ($i = 0; $i < $zips->numFiles; $i++) { $filename = $zips->getNameIndex($i); $zips->deleteName("$filename"); } $zips->close(); } Share this post
0 Response to "Delete All files from the ZIP in php"
Post a Comment