The code is as follows:
Require_once "./include/zip.php"; $zip = new Phpzip (); $zip-Createzip ("folder directory address to compress", "compressed file name. zip"); Generate only non-automatic downloads $zip-downloadzip ("folder directory address to compress", "compress
Sometimes it's not perfect. Some people may have saved some files, but he has changed the extension so that it is within our file type. The actual access is not displayed (because the extension does not match the contents of the file). Here's a PHP class that might be helpful.
first, the PHP test classFirst of all, the above file header and file type mapping relationship from the Internet, if you have a new file need to check, just need to add the map. If you need to know the header information
Sometimes we don't do it well. Some people may have saved some files, but he has changed the extension so that it is within our file type. Cannot be displayed when a single actual visit (because the extension does not match the contents of the file). The following PHP class may be helpful to us.
First, the PHP detection class
First of all, the above file header and file type mapping relationship from the Internet, if you have a new file to check, only need to add the mapping. If you need to know
Sometimes we don't do it well. Some people may have saved some files, but he has changed the extension so that it is within our file type. Cannot be displayed when a single actual visit (because the extension does not match the contents of the file). The following PHP class may be helpful to us.
first, the PHP detection classFirst of all, the above file header and file type mapping relationship from the Internet, if you have a new file to check, only need to add the mapping. If you need to know
Sometimes it's not perfect. Some people may have saved some files, but he has changed the extension so that it is within our file type. The actual access is not displayed (because the extension does not match the contents of the file). Here's a PHP class that might be helpful.
first, the PHP test classFirst of all, the above file header and file type mapping relationship from the Internet, if you have a new file need to check, just need to add the map. If you need to know the header information
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.