I used that code, but it doesn’t show anything at all, just a blank screen :(. is it because the errors or disabled or what, I’m also using error_reporting(E_ALL);, but still its a blank screen.
Check the folder permissions. From the PHP Manual user notes:
rickky at gmail dot com (02-Jul-2007 01:07)
If the directory you are writing or saving into does not have the correct permissions set, you won’t get any error messages and it will look like everything worked fine… except it won’t have changed!
Instead make sure you collect the return value of ZipArchive::close(). If it is false… it didn’t work.
Still doesn’t explain why var_dump() doesn’t display the return values in your case though.
Yes exactly, it might be zip not enabled, but the damn problem is even if I use a strange class name which would never exist, it still doesn’t give any error