I wrote this code to create a ZIP file and to save it. But somehow it just doesn\'t show any error, but it doesn\'t create a ZIP file either. Here\'s the code:
$
break it into steps.
if ($res === TRUE) { check if file_exist check if addFile give any error } if($zip->close()) { $zip_created = true; echo "FILE ADDED!" }
Check the phpinfo for zip is enabled or not :)