This article mainly introduces the php decompression file code. you can use this code to decompress php files online. For more information, see
The code is as follows:
$ Zip = zip_open ("moooredale.zip ");If ($ zip ){While ($ zip_entry = zip_read ($ zip )){$ Fp = fopen (zip_entry_name ($ zip_entry), "w ");If (zip_entry_open ($ zip, $ zip_entry, "r ")){$ Buf = zip_entry_read ($ zip_entry, zip_entry_filesize ($ zip_entry ));Fwrite ($ fp, "$ buf
In Linux installation rar fou linux rar for linux software: http://www.rarsoft.com/download.htm so far the latest version is 4.10 beta 2, this is a shared version. The Linux operating system used in this article is Centos 5.6 and kernel version 2.6.18-238.12.1.el5.pony6. Select RAR 4.10 beta 1 for Linux: $ wget http://www.rarsoft.com/
On windows, there is a convenient rar compression and decompression tool. in linux, whether as a PC or server, sometimes some rar compressed packages will be downloaded, we need to decompress it. By default, linux does not support rar. we need to install it separately. Therefore, we search for
RAR for Linux software: http://www.rarsoft.com/download.htm
Up to now, the latest version is 4.10 beta 2, which is a shared version.
The Linux operating system used in this article is:Centos 5.6, kernel version 2.6.18-238.12.1.el5.pony6.
Select RAR 4.10 Beta 1 for Linux:$ Wget http://www.rarsoft.com/rar/rarlinux-4.1.b2.tar.gz
For a 64-bit system, use
CentOS installation RAR
On windows, there is a convenient rar compression and decompression tool. In linux, whether as a PC or server, sometimes some rar compressed packages will be downloaded, we need to decompress it. By default, linux does not support rar. We need to inst
unbind the generated package.
With the above knowledge, you should be able to uncompress a variety of compressed files. The following is a summary of the compressed files in the TAR series:
1st pair of files ending with .tar
Tar-XF all.tar
2XX for the file ending with .gz
Gzip-D all.gzGunzip all.gz
32.16.tgzor .tar.gz
Tar-xzf all.tar.gzTar-xzf all. tgz
4)for the file ending with .bz2
Bzip2-D all.bz2Bunzip2 all.bz2
5 bytes for the file ending with tar.bz2
Tar-xjf all.tar.bz2
6) for files ending
Generally, the rarfile cannot be extracted from Ubuntu installed by default. It can be extracted only after the RAR decompression tool is installed. In fact, installing the RAR decompression tool in Ubuntu is very simple. It can be done quickly in just two steps.
Ubuntu RAR decompression tool installation method:
Compression Function
Install sudo apt-Get install
Today, I want to decompress a rar file package on the server and run the unrar command to report that the file has not been installed. Well, I have to install it myself.System: centos 5.xRequired software packages: rarlinux-5.2.1.tar.gz1. Download the software packageWget http://www.rarlab.com/rar/rarlinux-x64-5.2.1.tar.gz2. Install rarTar zxf rarlinux-x64-5.2.1.
Tmpfilename.tar fileName | | DirName (just want to pack into. tar); Gzip-v Tmpfilename.tar (Delete source file, become tmpfileName.tar.gz, and display compression ratio---If-V is written as-Q does not display compression ratio);Extract:1. Tar zxvf fileName2, Tar xvf fileName (pro-test can also)3, gzip-d fileName.tar.gz; Tar xvf fileNameExplanation: Compression when two ways, in fact, the first enough, the second is step-by, first pack into tar, and then use gzip compression into. tar.gz forma
In other words, how do I install rar and unrar online decompression software on centos? If your centos is 32-bit, run the following command: wgethttp: // Others. how can I install the online decompression software rar and unrar on centos?
If your centos is 32-bit, run the following command:
Wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
Tar-zxvf rarlinux-3
---------------------------------------------
. Z
Decompress: uncompress filename. Z
Compression: compress filename
. Tar. Z
Decompress: Tar zxvf filename.tar. Z
Compression: Tar zcvf filename.tar. Z dirname
---------------------------------------------
. Zip
Decompress: unzip filename.zip
Compression: Zip filename.zip dirname
-----------------------------------
Huawei Software Park: http://www.onlinedown.net/soft/3.htm
Rarlinux Official Website: http://www.rarsoft.com/download.htm tar-zxvf rarlinux-3.8.0.tar.gz // extract tar.gz files first
Cd rar // directly CD to the corresponding folder
Su root // use root permission
Make // If the prompt is that the permission is insufficient, Su root will obtain the highest permission
Make install congratulations on your installation. Finally, extract the
Compression: Tar zcvf filename.tar. Z dirname
---------------------------------------------
. Zip
Decompress: unzip filename.zip
Compression: Zip filename.zip dirname
---------------------------------------------
. Rar
Decompress: rar a filename.rar
Compression: RAR e fil
of RAR can be used as described above to decompress, but don't forget,
any software has its own scope of operation, a part of Linux can extract 7z, RAR format files, does not mean that all Linux can do, and so does other systems,
Therefore, we recommend that the publishers in the ZIP format packaging, if the published files only need to be used in Linux or un*x,
Detailed instructions on usage of RAR for Linux commands
RAR usage: RAR
Generally, the rarcommand is executed by a principal (Optional). The operation document is the. rar file object to be operated. The file or file list is the specific file or directory to be modified for the Operation Document ).Common
Fast pressure is a domestic compression software, to support the decompression of KZ, ZIP, 7Z, RAR, MOU, ACE, ARJ, BZ2, CAB, GZ, ISO, JAR, LZH, TAR, UUE, Z, and other format files, a friend does not know how to extract the fast pressure, the following is a tutorial.
First, use the right key to decompress
Right-click the compressed package you want to extract, and select how to extract it from the pop-up m
Decompression in the JAVA JDK does not seem to decompress our manually compressed RAR files, only the JDK API compressed RAR
So come up with the following WinRAR command line decompression
Package edu.nwpu.vcampus.util; Import Java.io.File; public class Ziputil {public static final String Winrarpath = ' C://program files//winrar//winrar.exe '; public static bool
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.