Manipulate an Archive in memory with PHP (without creating a temporary file on disk)
I had the same problem but finally found a somewhat obscure solution and decided to share it here. I came accross the great zip.lib.php/unzip.lib.php scripts which come with phpmyadmin and are located in the “libraries” directory. Using zip.lib.php worked as a charm for me: require_once(LIBS_DIR . ‘zip.lib.php’); … //create the zip $zip = new zipfile(); … Read more