$zip = new Ziparchive (); First instantiate this class if ($zip->open (' F:\test.zip ', ziparchive::overwrite=== TRUE)) { $zip->addfile ("1439879545373869963.jpg"); Zip_close (); Shut down echo ' OK '; } else { Echo ' failed '; }
This is a very simple compression code, but this error will occur I use the Wamp integration package environment, PHP is 5.5 version, is not required to open PHP_ Zip.dll extension, again by the output can be output OK, that is, the Ziparchive class is successfully created, so should not be an extension of the problem, but Ziparchi is the method has been error, looking for a long time also do not know why, seek answers
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.