Php zip compression and decompression class ZipArchiv User Guide. Php zip compression and decompression class ZipArchiv user guide this article mainly introduces php zip compression and decompression class ZipArchiv User Guide, very detailed, for
This article mainly introduces the php zip compression and decompression class ZipArchiv User Guide, which is very detailed. For more information, see The PHP Extension class (PHP 5> = 5.2.0, PECL zip> = 1.1.0), some methods require PHP 5.2. +, and
This article mainly introduces the php zip compression and decompression class ZipArchiv User Guide, which is very detailed. For more information, see The PHP Extension class (PHP 5> = 5.2.0, PECL zip> = 1.1.0), some methods require PHP 5.2. +, and
To use this PHP extension class, you need (PHP 5 >= 5.2.0, PECL zip >= 1.1.0), some methods require PHP 5.2.+, and php.ini configuration supports zipFor the win system, simply remove the annotation for the php_zip.dll extension, and then restart the
This paper mainly from the following several convenient to explain file archiving and compression, while comparing the compression ratios and characteristics of several different compression methods.
File Archive command tar,tar.gz source
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original file
One, zip compression1, Application examples(1) package all the files under the current folder into one Xxx.zip file Zipxxx.zip *(2) package all. doc files in the current folder into a single xxx.zip fileZipxxx.zip *.doc(3) Compress a file xxx.txt
Instance: compressing the contents of the current directory on the server as xxx.zip files
Zip-r xxx.zip./*
Unzip the zip file to the current directory
Unzip Filename.zip
============================
Another: Some servers do not
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original file
This article briefly introduces the PHP operation of the ZIP compression package needs to be in the case of the need to directly display the picture or file, the method is very simple mainly using the PHP Zip File series function, Base64_encode
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.