Hello
I am trying to zip a MySQL query result as file and allow the user to download. Using http://us2.php.net/manual/en/function.ziparchive-addfromstring.php is not an option as I dont have the correct libraries installed on the server and I cant install it.
So somebody suggested to use phpmyadmins zip library.
I am using the following code: http://pastebin.com/m341000d to generate my zip. The code for phpmyadmins libaray is: http://phpmyadmin.svn.sourceforge.net/viewvc/checkout/phpmyadmin/trunk/phpMyAdmin/libraries/zip.lib.php
But when I try to unzip it, the unzip utility (using the unzip tool that comes with Linux and Mac), it gives me a warning that there are extra 3 bytes at the start or in the zip file.
Due to this warning, safari dosnt unzip the file by default and I have to go to the command line and zip it.
Any idea what might be wrong? Or any suggestion for some other good zip module.