I have enabled php_zip.dll in php.ini and it appears in phpinfo, so zerchrive is enabled. Next, here's the code I'm using:
$ zipname = 'export.zip'; $ Zip = new zippacker; $ Zip- & gt; Open ($ ZIPPam, ZIPArchive ::);
When my code reaches this point, the screen is empty There is no error in my error logs to show to my html but it is not. All other indispensable PHP has been commented on. I am using PHP 5.2.4 on a WordPress 3.9.2 site.
I have found a solution for those searching in search engines. Instead of using PHP's ZIPArchive, I used a command line with WinZip, it looks like this:
$ cmd = '' c: \ winz-directory \ winzip 32 .exe "- A" C: / Zip-directory / Exports.zip "" C: / ZIP-directory "'; Executive ($ cmd);
I still do not know That's what caused the problem with PHP's zerchrive.
No comments:
Post a Comment