As you know, in order to save the file and save space occupancy, the file is often compressed. Moreover, because the file is compressed usually only a compressed file, easy to carry, but also password protection, so the file compression and decompression has become a common use of an operation, then how to do these operations? Here is a description of the DOS compression/decompression method.
Because of the different compression software, there are several compressed files, the most common comp
When you purchase a virtual host that does not support Zip_open (),
Also does not support new ziparchive (),
Don't even think it will support exec (), DL () ...
But Gzopen () will always support it.
PHP compression decompression class Pclzip as long as the server support Gzopen can be compression and decompression.
Pclzip IntroductionThe Pclzip library is capable of compressing and decompressing compressed files (WINZIP, PKZIP) in zip format, and can
Pclzip IntroductionThe Pclzip library is capable of compressing and decompressing compressed files (WINZIP, PKZIP) in zip format, and can process such files, including generating compression files, listing the contents of compressed files, and extracting archives, and so on. Because of the ability to compress and decompress on the server side, it is quite convenient to use.Pclzip defines a Pclzip class whose category object can be treated as a zip fil
Temp1.cpio is compressed with a relative path).If you add the U option, such as Cpio-iud〈/u0/temp1.cpio, the file will be overwritten if it exists, that is, forced overwrite.Cpio-id〈/u0/temp1.cpio *.C expands the *.c file, similar to the pkunzip-d temp1.zip unpacking function in the PKZIP software in a DOS system.5. Display:Cpio-it〈/u0/temp1.cpio [*.C] Displays the file name in the vault, similar to the PKUNZIP-VBNM temp1.zip function in the
from your randseed. binfile.
Here I will mention PGP pre-compression processing before encryption. The PGP kernel uses the PKZIP algorithm to compress the plaintext before encryption. On the one hand, for emails, it is possible that the encrypted ciphertext after 7 bits encoding may be shorter than the plaintext, which saves the network transmission time. On the other hand, the plain text is compressed, which is equivalent to a transformation. The in
(automatically adds. Z and Deletes/u0/temp1.cpio).3. Unzip:The uncompress/u0/temp1.cpio.z is automatically reverted to/u0/temp1.cpio.4. Unpacking expansion:The unpacking of the original directory structure will be expanded to the current directory. If a relative path is packaged, when the unpacking is expanded, it is also the file data that is stored in the relative path, and if it is packaged as an absolute path, the expanded file data is also stored as an absolute path when the unpacking is e
, minute, second)Zipinfo.compress_type:The compression type.zipinfo.comment:Document description.zipinfo.extr:The extension data.Zipinfo.create_system:Gets the system that created the zip document.zipinfo.create_version:Gets the pkzip version of the zip document that was created.zipinfo.extract_version:Gets the PKZIP version required to unzip the zip document.zipinfo.reserved:Reserved field, the current imp
is automatically reverted to/u0/temp1.cpio.4. Unpacking expansion:The unpacking of the original directory structure will be expanded to the current directory. If a relative path is packaged, when the unpacking is expanded, it is also the file data that is stored in the relative path, and if it is packaged as an absolute path, the expanded file data is also stored as an absolute path when the unpacking is expanded. Therefore note that if the relative path, you should first enter the correspondin
PHP compression and decompression class PclZip can be used to compress and decompress Zip files (WinZip and PKZIP). It can process ZIP files, this includes generating compressed files, listing compressed files, and extracting ZIP files. The latest version is the PclZip2.8.2PclZip class. How to create a ZIP file is defined: PclZip: create ($ filelist,
PHP compression and decompression class PclZip can be used to compress and decompress Zip files (WinZi
for use. The encryption method of the private key with the password is the same as that of PGP. You can use the brute force method to obtain the user's password, although difficult, security is lost after all. Here, you just need to remember a little bit. To save your private key like other private keys, authentication has the opportunity to access it. It is best to save it in your brain rather than on paper.
PGP security considerations are reflected in all aspects of PGP. For example, the actu
file format. Luckily, if you want, we can write HTML code to handle both formats. This is because each private file format is specified by a different extension of the
This article does not talk about the creation of a CAB file (because the cab will be out of business). People who are really interested in this can check Microsoft's Java developer documentation. Once you have created the CAB profile, you can use the cab by adding a cabbase HTML parameter (param) to the
The value value o
-j0s_TAAAnrLYZ5DM014.png " border= "0"/>Encrypted content in VimSetting a strong encryption method in VimNote: The warning message implies that the protected file is a weak encryption method. So next, let's look at how to set up a strong encryption method in Vim.650) this.width=650; "title=" Vim file weak encryption "alt=" Vim file weak encryption "src=" http://s4.51cto.com/wyfs02/M02/97/91/ Wkiol1kvxnmsip5jaaafipj0xok388.png "border=" 0 "/>Weak file encryption in VimIn order to view the encrypt
. Z is restored to/u0/temp2.tar.
4. unpack and expand:
Tar-xvf/u0/temp2.tar
If the package is packaged in a relative path, the expanded file data is stored in the relative path when the package is unwrapped. if the package is packaged in an absolute path, the expanded file data is stored in the absolute path when the package is unwrapped.
If you specify the expanded file name, pay attention to the directory path of the file.
5. display:
Tar-tvf/u0/temp2.tar display the file name in the fil
binary data directly to a compressed document.
Class Zipinfo
The Zipfile.getinfo (name) method returns a Zipinfo object that represents the information for the corresponding file in the zip document. It supports the following properties:
Zipinfo.filename: Gets the file name.
Zipinfo.date_time: Gets the last modification time of the file. Returns a tuple containing 6 elements: (year, month, day, time, minute, second)
Zipinfo.compress_type: Compression type.
Zipinfo.comment: Document descri
Create encrypted compressed files under Linux
Method One:* 1. Create an encrypted zip file using the zip command:* 2. When extracting encrypted files, you will be prompted to enter your password:
Method Two:* 1. Create a ZIP file using 7z:* 2. Unzip the encrypted file:
Method Three:* 1.To Create a encrypted compressed tar archive with GnuPG:* 2.To uncompress A archive file encrypted with GnuPG:
Suppose you want to create a zip archive and have password protection so that wh
the file. Returns a tuple containing six elements: (year, month, day, hour, minute, second)
ZipInfo. compress_type: compression type.
ZipInfo. comment: document description.
ZipInfo. extr: Extended item data.
ZipInfo. create_system: Obtain the system for creating the zip file.
ZipInfo. create_version: Get the PKZIP version of the created zip file.
ZipInfo. extract_version: Obtain the PKZIP vers
etags)
========================================================== ==============================================
The unzpriv. h file in the Unzip-5.42 source file package is about 2396th rows up and down.
========================================================== ==============================================
/* Convert filename (and file comment string) into "internal" charset.
* This macro assumes that Zip entry filenames are coded in OEM (ibm dos)
* Codepage when made on
*-> DOS (this includ
Pclzip is a very powerful PHP class for compressing and extracting zip files, and the Pclzip library is capable of compressing and decompressing compressed archives (WINZIP, PKZIP) in zip format, and can process such files, including generating compressed file, List the contents of the archive, unzip the file, and so on. You can also add or delete files from existing zip packages.
Official website: http://www.phpconcept.net/pclzip/
Recently in the de
Philippe Caze Phillip Walter KatzNovember 3, 1962-April 14, 2000American. The inventor of the zip format and the Pkarc and PKZIP compression software. founder of the PKWare company. In the Internet's telephone line era, the transmission of data files is a very annoying problem. File compression is a must-have technique. At that time the monopoly of the compression software is ARC, which is a charge of commercial software. Philippe Caze developed an
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.