For the zip file on the web, a lot of examples, RAR file decompression PHP does not have direct support, you can use PECL to Http://pecl.php.net/package/rar download the corresponding version of the non-thread-safe DLL and then throw to the PHP ext directory.
Open php.ini.
Add one line
Extension=php_rar.dll
Restart the Web server and PHP
Copy Code code as follows:
Public function _unzip
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 permiss
Friends give me a support for ASP space, but upload files can only be a single file upload, no batch upload, my page has a lot of
Small pictures, this way of uploading is very painful. So consider the picture file can be compressed into a RAR format, and then on the server solution
Pressure.
In fact, want to achieve this function is very simple, first of all to upload a
Server | Server actually want to achieve this function is very simple, first of all to upload a RAR decompression program, is RAR own decompression program, only need its core
Program RAR.EXE this file is OK. Then you will upload a progr
In fact, want to achieve this function is very simple, first of all to upload a RAR decompression program, is RAR own decompression program, only need its core
Program RAR.EXE this file is OK. Then you will upload a program that e
= processwindowstyle. hidden; the_startinfo.workingdirectory = rarpatch; // obtain the path of the compressed package.
process the_process = new process (); the_process.startinfo = the_startinfo; the_process.start (); the_process.waitforexit (); the_process.close (); }{}}
RAR parameters:1. Compression commands1. Compress temp.txt to temp.rar rar a temp.rar temp.txt2. compress all
Under the Windows platform compressed into the RAR file, how to decompress under the Linux platform, Linux platform by default is not supported by RAR file decompression, need to install the Linux version of RAR compression software, for:/http Www.rarlab.com/download.htm Currently the latest version is 5.3. After the download, after the decompression, into the
extracting servic E-worker.js OK extracting main.dc903dc2.css OK extracting main.7 B35a52f.js OK extracting Iconfont.715ffea7.ttf OK extracting iconfont.79c4ad9a.eot OK extracting iconfont.f8b575df.svg OK all ok[[emailprotected] test]# ls-ltotal 1468-rw-r--r--1 root root 352 June 4 10: asset-manifest.json-rw-r--r--1 root root 283518 June 4 10:09 build.rar-rw-r--r--1 root root 146 June
extracted filesN[Email protected] Read additional filter Masks from stdin[Email protected]o[+|-] Set the overwrite modeOl[a] Process Symbolic Links as the link [absolute paths]or Rename files automaticallyow Save or restore file owner and groupP[password] Set PasswordP-do not query passwordR Recurse SubdirectoriesScSlsmtatbtnToTsU Update FilesV List all volumesVer[n] File version controlVP Pause before each volumex[Email protected] Read file names to
Generally through the default installation of Ubuntu can not extract RAR files, only after the installation of RAR decompression tool, can be decompressed. In fact, the installation of RAR decompression tool under Ubuntu is very simple, only need two steps can be quickly don
Under the Windows platform compressed into the RAR file, how to decompress under the Linux platform, Linux platform is not supported by default RAR file decompression, the need to install the Linux version of the RAR compression software, download address: http://www.rarlab.com/ Download.htm currently the latest version is 4.1.1, after the download after decompre
TAR-XVF rarlinux-3.9.3.tar.gzCD rarMakeSee the following message that the installation was successful.Mkdir-p/usr/local/binMkdir-p/usr/local/libCP rar Unrar/usr/local/binCP Rarfiles.lst/etcCP Default.sfx/usr/local/libThe following issue occurs when you run the command rarRAR:/lib/i686/nosegneg/libc.so.6:version ' glibc_2.7 ' not found (required by RAR)Workaround:CP Rar_static/usr/local/bin/rarRAR x Vpsyou.r
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.