How to Excluding Extensions Creating RAR & Uploading it

 
Thread Tools Search this Thread
Operating Systems Linux Debian How to Excluding Extensions Creating RAR & Uploading it
# 8  
Old 01-17-2011
This User Gave Thanks to DGPickett For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Readin document & creating path

Need a way to read a file in who every line is a path to a directory and make shortcut to that directory on a specific place. Example: line in the document /media/gogo/6651-FEAB/Desktop/ /media/gogo/6651-FEAB/Desktop/alex/ /media/gogo/6651-FEAB/linux/ ... (3 Replies)
Discussion started by: gogok_bg
3 Replies

2. Programming

Script for creating a directory & move the .tif files in it.

Hi Team, I have thousands of TIF files which are converted from PDF. Below is a sample of it. LH9406_BLANCARAMOS_2012041812103210320001.tif LH9406_BLANCARAMOS_2012041812103210320002.tif LH9406_BLANCARAMOS_2012041812103210320003.tif LH9411_ANGENIAHUTCHINSON_2012041812102510250001.tif... (9 Replies)
Discussion started by: paragnehete
9 Replies

3. Shell Programming and Scripting

creating delimiter file & append with cron

I have the following script working fine, and need to generate a file delimiter (with tab or special character) for Excel data import. The script will run every hour in crontab to append the new rows to the delimiter, so that I can collect the data for i.e. a week, which will give me a lot of... (0 Replies)
Discussion started by: Daniel Gate
0 Replies

4. Shell Programming and Scripting

Searching for a string in .PDF files inside .RAR & .ZIP archives.

Hi, I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files. I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies

5. Shell Programming and Scripting

Creating tar excluding links

hi, How do i create a tar file of a directory excluding the links in that particular directory and its sub-directories. The below command doesnt work for me. tar -cvf abc.tar /dir1 --exclude"^l" (1 Reply)
Discussion started by: yesmani
1 Replies

6. UNIX for Dummies Questions & Answers

Creating tar file for subdirs, excluding one and preserving user info

Hi All, I am not one of the super users / root for AIX 5.3 system. There is a filesystem Say /DIR1 and its has several subdirs in it say SUBDIR1, SUBDIR2, SUBDIR3. Can I create a tar file for all files under DIR1 and SUBDIR1, SUBDIR3. Excluding SIBDIR2? Also how can I preserve... (2 Replies)
Discussion started by: Hangman2
2 Replies

7. Filesystems, Disks and Memory

Creating /boot partition & MBR concerns

I have 40GB HD with mepis8, swap, MBR and under flags word boot. I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Discussion started by: worthamtx
1 Replies

8. Shell Programming and Scripting

creating & sending formatted (with bolds & colors) CSV

Hi , I have a situation. Need is to create & send a formatted file with header in BOLD & colored & some sequel results as a content. I know echo -e \033 command, but its scope is limited in PUTTY. How to retain the formatting out of Putty; say after someone opens a email attachment... (2 Replies)
Discussion started by: infaWorld
2 Replies

9. Shell Programming and Scripting

Creating multiple extensions

Friends I want to automat sending a letter to different persons whose directories are named as 001, 002, 003, 004. To push the same letter to all these directories, I need to name the letter as letter.001, letter.002 like that. Is there any method whereby I get the extension of this letter... (2 Replies)
Discussion started by: chssastry
2 Replies

10. UNIX for Dummies Questions & Answers

Creating subusers & assigning limited rights

Hi all, I need to create 2 users sde1 & sde2 with limited authority(only for read). I know the root password.Pls tell me step by step procedure how to create these subusers to root. the commands which these subusers can run are : 1)#df -k 2)#ps -ef|grep syb 3)#ps -ef|grep omc 4)ps... (4 Replies)
Discussion started by: xs2sandeep
4 Replies
Login or Register to Ask a Question
RAR_OPEN(3)								 1							       RAR_OPEN(3)

RarArchive::open - Open RAR archive

       Object oriented style (method):

SYNOPSIS
publicstatic RarArchive RarArchive::open (string $filename, [string $password = NULL], [callable $volume_callback = NULL]) DESCRIPTION
Procedural style: RarArchive rar_open (string $filename, [string $password = NULL], [callable $volume_callback = NULL]) Open specified RAR archive and return RarArchive instance representing it. Note If opening a multi-volume archive, the path of the first volume should be passed as the first parameter. Otherwise, not all files will be shown. This is by design. PARAMETERS
o $filename - Path to the Rar archive. o $password - A plain password, if needed to decrypt the headers. It will also be used by default if encrypted files are found. Note that the files may have different passwords in respect to the headers and among them. o $volume_callback - A function that receives one parameter - the path of the volume that was not found - and returns a string with the correct path for such volume or NULL if such volume does not exist or is not known. The programmer should ensure the passed function doesn't cause loops as this function is called repeatedly if the path returned in a previous call did not correspond to the needed volume. Specifying this parameter omits the notice that would otherwise be emitted whenever a volume is not found; an implementation that only returns NULL can therefore be used to merely omit such notices. Warning Prior to version 2.0.0, this function would not handle relative paths correctly. Use realpath(3) as a workaround. RETURN VALUES
Returns the requested RarArchive instance or FALSE on failure. CHANGELOG
+--------+-----------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------+ | 3.0.0 | | | | | | | $volume_callback was added. | | | | +--------+-----------------------------+ EXAMPLES
Example #1 Object oriented style <?php $rar_arch = RarArchive::open('encrypted_headers.rar', 'samplepassword'); if ($rar_arch === FALSE) die("Failed opening file"); $entries = $rar_arch->getEntries(); if ($entries === FALSE) die("Failed fetching entries"); echo "Found " . count($entries) . " files. "; if (empty($entries)) die("No valid entries found."); $stream = reset($entries)->getStream(); if ($stream === FALSE) die("Failed opening first file"); $rar_arch->close(); echo "Content of first one follows: "; echo stream_get_contents($stream); fclose($stream); ?> The above example will output something similar to: Found 2 files. Content of first one follows: Encrypted file 1 contents. Example #2 Procedural style <?php $rar_arch = rar_open('encrypted_headers.rar', 'samplepassword'); if ($rar_arch === FALSE) die("Failed opening file"); $entries = rar_list($rar_arch); if ($entries === FALSE) die("Failed fetching entries"); echo "Found " . count($entries) . " files. "; if (empty($entries)) die("No valid entries found."); $stream = reset($entries)->getStream(); if ($stream === FALSE) die("Failed opening first file"); rar_close($rar_arch); echo "Content of first one follows: "; echo stream_get_contents($stream); fclose($stream); ?> Example #3 Volume Callback <?php /* In this example, there's a volume named multi_broken.part1.rar * whose next volume is named multi.part2.rar */ function resolve($vol) { if (preg_match('/_broken/', $vol)) return str_replace('_broken', '', $vol); else return null; } $rar_file1 = rar_open(dirname(__FILE__).'/multi_broken.part1.rar', null, 'resolve'); $entry = $rar_file1->getEntry('file2.txt'); $entry->extract(null, dirname(__FILE__) . "/temp_file2.txt"); ?> SEE ALSO
rar:// wrapper. PHP Documentation Group RAR_OPEN(3)