Split splitting large filesSystem defaults to self-containing# split-b 2048m AA Aa_-B N[BKM] B. Behalf of 512B,K representative 1kb,m representative of 1MThe following AA indicates the specified file prefixThe result: Aa_aa Aa_abMerge split files:# cat Aa_aa aa_ab > AARAR Splitting large files# apt-get Install rar# rar a-v2048m Aa.rar AAThe result: Aa.part1.rar A
Thinkphp can not realize the upload of RAR file, I hope you pointed out
thinkphp implementation file upload, RAR format can not be uploaded, Pdf,jpg,xls file upload
PHP Code
Public function upload () { if (!empty ($_files)) { echo ' OK '; Dump ($_files); If there is a file upload, upload the attachment $this->_upload (); }
>
Ubuntu12.04 by default, files in rar format cannot be compressed.
However, many of our commonly used files are stored in rar compression format. So
To better use Ubuntu, we need to add some plug-ins by ourselves.
First install unrar
Input in Shell
Apt-Get install unrar
Apt-Get install RAR this is the compression of the installation rarfile
Next, you can
Enable CentOS to automatically install rar and unrar with yum
Objective: To enable CentOS to automatically install rar and unrar with yum
System Environment: CentOS 7.0
The procedure is as follows:
1. edit the fileEdit the dag. repo file, or create a new dag. repo file.Vi/etc/yum. repos. d/dag. repo2. Add code to the fileThis file is an empty file here. Add the file to the file, and then: WqSave![Dag] n
---------------------------------------------. ZipDecompress: unzip FileName.zipCompression: zip FileName.zip DirName
Decompress: jar-xvf *. zip---------------------------------------------. RarDecompress: rar a FileName.rarCompression: r ar e FileName.rar
Rar Please download to: http://www.rarsoft.com/download.htm!
After decompression, copy rar_static to the/usr/bin directory (Other Directories specified b
1. Find the WinRAR installation directory: D: \ Program Files \ WinRAR \
2. Run cmd to enter the installation directory.
3. Run the RAR command to view help information.
4. Use commands to compress the D: \ 10 \ dd file: rar a d: \ 10 \ dd.rar D: \ 10 \ dd
5. decompress the D: \ 10 \ dd file: RAR x D: \ 10 \ dd.rar D: \ 10 \ dd
6. to compress the
When using CodeIgniter development file upload program, the default does not support RAR and zip compression package format, which is still to be perfected. But we can solve this problem by defining our own format.CodeIgniter restrictions on formatting when uploading files are defined in the mimes.php file in the Application Folder config. The file does not contain RAR by default, and the zip definition doe
Purpose: To enable CentOS to install RAR and Unrar automatically with YumSystem Environment: CentOS 7.0The following are the steps:1. Edit the fileEdit the Dag.repo file, or create a new Dag.repo file.vi /etc/yum.repos.d/dag.repo2. Add code to the fileThe file in my here is an empty file, add the next content, and then :wq Save![dag]name=DagRPMRepositoryforRedHatEnterpriseLinuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1ena
ZhangchangchangIn order to obtain a compressed package of files, and the package may contain compressed packets, folders, folders containing compressed packets, files and other nested cases, the use of breadth-first traversal and depth-first traversal method to solve the problem.public static list{String destpath = zippath.substring (0,zippath.lastindexof (".")) + "/";Unzip the compressed file firstif (Zippath.contains (". zip"))Unzipfile (New File (Zippath), destpath);if (Zippath.contains (".
1, first of all, we choose RAR compressed file point attributes;
2, point attributes-Select comments-See the password is here, the general website download software to extract the password are in this;
3, the password copied to the Decompression password box, point confirmation can;
4, and, sometimes, decompression password are downloaded under the website software.
Second, alternative methods
Advancedrarrepair This software
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 coreProgram RAR.EXE this file is OK. Then you will upload a program that executes RAR.EXE CMD. EXE This is a program in Windows (don't need me to say it). Finally, we started to implement these procedures. Take a look at the following code
Dim Ylj,
The author of the recent company project to do RAR decompression function, found on the internet for a long time seemingly about RAR decompression data very little, but a lot of people recommend a "Unrar4ios" third-party open source framework, so download and try to discover the open source framework and in the use of the process found some existing problems, Special here to make a summary let Yimeimei less
/// ///unzip the RAR and zip files (there is a need for Winrar.exe (as long as you can extract or compress files on your computer Winrar.exe))/// /// Save directory after extracting files /// The file to be extracted is stored in absolute path (including file name) /// whether the extracted files will overwrite the existing files (if not overwritten, the extracted files and the same name files that already exist wi
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
IOS usage Summary of rar Unrar4iOS, and iosunrar4ios
The author's recent company project has to implement the rar decompression function. After searching online for a long time, it seems that there is very little information about rar decompression. However, many people recommend a third-party open-source framework named "Unrar4iOS, so I downloaded and tried to u
C # Implementation of rar compression and decompression of Files
This document describes how to compress and decompress files in C. Share it with you for your reference. The specific analysis is as follows:
This program uses the WinRAR program to compress the file. For command line syntax, see WinRAR help.
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Be careful spread on QQ 1407.rar/my photos. EXE/Trojan-PSW.Win32.Delf.agh/worm.win32.pabug.cn
EndurerOriginal2007-11-02 No.2Supplement the reply from rising2007-11-02 No.1Version
Qq received information:/---Www. f ** DGA * ea.org.cn/1407.rarhere is my photo to help me remember it. Oh, click it to download it.---/
Kaspersky report during download:/---Detected: TrojanProgram Trojan-PSW.Win32.Delf.aghURL: hxxp: // www. f ** DGA * ea.org.cn/1407.
Recently, I upgraded the email server and installed Qmail-Submit, ClamAV, and spamassassin.
After the installation, an error is reported when an email with an attachment in rar format is sent.
Qq temporary problem (#4.3.0)
After thinking hard about Google, we finally found that ClamAV is a ghost. Because it does not support extracting RAR files, we cannot scan attachments.This error is reported.
As fo
Previously, I have set up the Qmail + MySQL + Vpopmail + ClamAV server platform. Only attachments in rar format cannot be scanned.
With the help of Cu altar friends, we found a solution.
Next, I will repeat the posts of my friends. For your reference
1. Modify TCP. SMTP127.: Allow, relayclient = "", rblsmtpd = "", qmailqueue = "/var/Qmail/bin/qmail-scanner-queue.pl": Allow, qmailqueue = "/var/Qmail/bin/qmail-scanner-queue.pl"
Then # tcprules T
When I sent an email to a friend this morning, I found that Gmail was not allowed to send a zip attachment with executable files. See:
The mp3.zip I sent to him is an MP3 player (an EXE file) I wrote myself ). Since Gmail does not allow ZIP files to contain executable files, it is certainly not acceptable to directly send the EXE without compression (but I have not tried it), so it is depressing ......Suddenly, what about RAR? Replace winrararchive
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.