Zip:pclzip http://www.phpconcept.net/pclzip/index.en.php
rar:pecl rar Http://pecl.php.net/package/rar
In the past to perform the decompressor under PHP, the most common way is to write command and then use EXEC () and other execution functions to run
This may be possible under Windows, but switching to UNIX can be a problem for account permissions and cannot be executed successfully
Is there a way of providing a function that can be used directly without having to go to the command to run?
The a
://www.rarsoft.com/download.htm download!After extracting, copy the rar_static to the/usr/bin directory ( other directories specified by the $PATH environment variable are also available):[ROOT@WWW2 tmp]# CP Rar_static/usr/bin/rar———————————————. LhaDecompression: Lha-e Filename.lhaCompression: Lha-a Filename.lha FileNameLHA please go to: http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/download!> After unpacking, copy the LHA to the/usr/bin directory (other directories specified by the $PATH e
I carefully studied the efficiency of the decompression program written in php, which is much higher than I thought. Since it is so good, I just need to optimize it and use it in my background, although the control panel in most of the space currently has the compression and decompression function, it is sometimes troublesome.Before doing this, I have never touched on php compression. I have searched some w
determine if a path exists, create a file path if it does not existFile File = new file (outpath.substring (0, Outpath.lastindexof ('/')));if (!file.exists ()) {File.mkdirs ();}Determine whether the full path of the file is a folder, if it is uploaded above, do not need to unzipif (new File (Outpath). Isdirectory ()) {Continue}Output file path informationSystem.out.println (Outpath); OutputStream out = new FileOutputStream (Outpath);byte[] buf1 = new byte[1024];int Len;while ((Len=in.read (BUF1
Apache Ant Download Address:
http://ant.apache.org/bindownload.cgi
Put the Lib/ant.jar into the build path of our project, only need Ant.jar. In fact, Ant's Zip API is very similar to JDK's, if it was written in JDK's API, basically, just change the top import package.
The code is as follows
Copy Code
Package common;Import Java.io.BufferedInputStream;Import Java.io.BufferedOutputStream;Import Java.io.File;Import Java.io.
Description of the Linux zip command in detail: Compress the file. Syntax: Zip [-acddffghjjkllmoqrstuvvwxyz$][-b Compression and decompression of the ZIP package under Linux
Run the following commands in the/home directory:Cd/home # enter the/home Directory1. compress the mydatafile under the/home directory as mydata.zip.Zip-rmydata.zipmydata # compressing mydata Directories2. Decompress mydata.zip in the/homecatalog to the mydatabak directory.Unzipmydata.zip-dmydatabak3. compress the abcfolder and 123.txtfile under the/Home Directory into abc123.zip
Zip-rabc123.zipabc123.txt4.
is correct-U: Similar to the-f parameter, but other files in the compressed file are extracted to the directory in addition to updating the existing file-V: Show detailed information when performing Yes-Z: Show only notes text for compressed files-A: Necessary character conversions for text files-B: Do not convert text files to characters-C: File names in compressed files are case-sensitive-j: does not handle the directory path of compressed files-L: Change all file names in the compressed file
In the enterprise development process often encounter file compression and decompression, although many popular compressed file format on the Web is RAR, but because RAR is not an open standard, so zip becomes more people's choice. If you do not want to develop yourself, you can choose Open source projects, such as SharpZipLib is a good choice.usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usi
The "preface" is explained in the blog post:This article will introduce through the personal tone of the Linux platform related compression and decompression command related knowledge, in the current time point "May 23, 2017 " under the grasp of the technical level is limited, there may be a lot of knowledge understanding is not deep enough or comprehensive, I hope you point out the problem of common exchange, In the follow-up work and study, if found
Objective
This article is about Ubuntu uncompressed zip file garbled solution, a total of 2 ways to solve the problem, the following words do not say more, to see together
First, through the Unzip line command decompression, the specified character set
Unzip-o CP936 Xxx.zip (with GBK, GB18030 can also)
Interestingly, there is no explanation for this option in Unzip's manual, unzip--help a simple o
--install. While registering the service, you can use the option--default-file to set/modify the location of the My.ini configuration file. For example: mysqld--install MySQL--defaults-file=c:\my-opts.ini Note: [ mysqld --install 注册的服务是开机自动启动,要设置为手动启动 使用命令:--install-manual ] [使用 mysqld --remove 命令删除命令] 注册成功之后,我们可以从windows管理工具来启动/开闭mysql服务,也可以在命令行界面通过使用 net start mysql、net stop mysql 命令来启动/关闭myslq服务。 6.登录mysql客户端并修改用户密码: 登录命令: mysql -uroot -hlocalhost -p -P3306 修改
In the project to use ziparchive unzip the zip file, the initial test environment in the Windows platform, test pass, into the LINUX+NGINX environment when the problem (in the ZIP package is a total of more than 300 files and folders, mostly with Chinese characters file name), The phenomenon of the problem is: without the Chinese characters of the file decompression
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.