Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rar_broken_is(3) [php man page]

RAR_BROKEN_IS(3)							 1							  RAR_BROKEN_IS(3)

RarArchive::isBroken - Test whether an archive is broken (incomplete)

       Object oriented style (method):

SYNOPSIS
public bool RarArchive::isBroken (void ) DESCRIPTION
Procedural style: bool rar_broken_is (RarArchive $rarfile) This function determines whether an archive is incomplete, i.e., if a volume is missing or a volume is truncated. PARAMETERS
o $rarfile - A RarArchive object, opened with rar_open(3). RETURN VALUES
Returns TRUE if the archive is broken, FALSE otherwise. This function may also return FALSE if the passed file has already been closed. The only way to tell the two cases apart is to enable exceptions with RarException::setUsingExceptions; however, this should be unnecessary as a program should not operate on closed files. EXAMPLES
Example #1 Object oriented style <?php function retnull() { return null; } $file = dirname(__FILE__) . "/multi_broken.part1.rar"; /* Third argument is used to omit notice */ $arch = RarArchive::open($file, null, 'retnull'); var_dump($arch->isBroken()); ?> The above example will output something similar to: bool(true) Example #2 Procedural style <?php function retnull() { return null; } $file = dirname(__FILE__) . "/multi_broken.part1.rar"; /* Third argument is used to omit notice */ $arch = rar_open($file, null, 'retnull'); var_dump(rar_broken_is($arch)); ?> SEE ALSO
RarArchive::setAllowBroken. PHP Documentation Group RAR_BROKEN_IS(3)

Check Out this Related Man Page

RAR_SOLID_IS(3) 							 1							   RAR_SOLID_IS(3)

RarArchive::isSolid - Check whether the RAR archive is solid

       Object oriented style (method):

SYNOPSIS
public bool RarArchive::isSolid (void ) DESCRIPTION
Procedural style: bool rar_solid_is (RarArchive $rarfile) Check whether the RAR archive is solid. Individual file extraction is slower on solid archives. PARAMETERS
o $rarfile - A RarArchive object, opened with rar_open(3). RETURN VALUES
Returns TRUE if the archive is solid, FALSE otherwise. EXAMPLES
Example #1 Object oriented style <?php $arch1 = RarArchive::open("store_method.rar"); $arch2 = RarArchive::open("solid.rar"); echo "$arch1: " . ($arch1->isSolid()?'yes':'no') ." "; echo "$arch2: " . ($arch2->isSolid()?'yes':'no') . " "; ?> The above example will output something similar to: RAR Archive "C:php_rar runk estsstore_method.rar": no RAR Archive "C:php_rar runk estssolid.rar": yes Example #2 Procedural style <?php $arch1 = rar_open("store_method.rar"); $arch2 = rar_open("solid.rar"); echo "$arch1: " . (rar_solid_is($arch1)?'yes':'no') ." "; echo "$arch2: " . (rar_solid_is($arch2)?'yes':'no') . " "; ?> PHP Documentation Group RAR_SOLID_IS(3)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

extracting .rar files

Hi, Can someone throw light on opening a .rar file? thanks, sskb (5 Replies)
Discussion started by: sskb
5 Replies

2. UNIX for Dummies Questions & Answers

rename more files special case

hello all i have a big problems for me if i have more files as example test.ghrt.part01.rar test.ghrt.part02.rar test.ghrt.part03.rar test.ghrt.part04.rar test.ghrt.part05.rar test.ghrt.part06.rar test.ghrt.part07.rar test.ghrt.part08.rar test.ghrt.part09.rar test.ghrt.part10.rar... (13 Replies)
Discussion started by: ateya
13 Replies

3. UNIX for Dummies Questions & Answers

How can i open rar files

Is there a way to open rar files on linux i would really appretiate if u would help :) (2 Replies)
Discussion started by: abu_malek
2 Replies

4. Shell Programming and Scripting

unrar multiple files with password

The problem: how to unrar multiple rar files with known password This works fine: but how to/what to implement to prevent asking me for password each time Have tried: but it wont work. Any help appreciated. (2 Replies)
Discussion started by: vampirex
2 Replies

5. UNIX for Dummies Questions & Answers

Help with rar

Hi UNIX experts, I am stuck on a task due to ignorance with bash and all those commands. I have thousand of split archive files on a folder called downloads Each file is named as below: 0001.part1.rar 0001.part2.rar 0001.part3.rar 0002.part1.rar 0002.part2.rar 0003.par1.rar... (5 Replies)
Discussion started by: farneville
5 Replies

6. Debian

How to Excluding Extensions Creating RAR & Uploading it

for media files in directory i want change every special char in name to "_" , create screenshots, get media information, then cat that info in 1 file, after that i want split (only) media files (not *.jpg,*.txt, etc.) with rar (including some file with info in each archive, and give each archive... (7 Replies)
Discussion started by: sunnymuffin
7 Replies

7. UNIX for Dummies Questions & Answers

Remove all lines that contain ".rar"

How do I use bash to remove all lines that contain the string ".rar" from a file? (3 Replies)
Discussion started by: locoroco
3 Replies

8. UNIX for Dummies Questions & Answers

Unzip a .rar file

Hi, How to unzip a .rar file in unix. I tried unrar command but it doesnt work. Any help will be appreciated Thanks (10 Replies)
Discussion started by: irudayaraj
10 Replies

9. UNIX Desktop Questions & Answers

String variable question help plz

Dear all, I have problem with string variable, I want to write script which do the following read x x="part1=part2" then I want to sub the x variable for x1="part1" and x2="part2" Is that possible ?? (4 Replies)
Discussion started by: khaled-hayek
4 Replies

10. Fedora

Problem installing rar and unrar

Good day all, I am trying to install rar and unrar on fedora 16. In terminal root, when I try to do : # cp rar unrar /bin I get the following error message: cp: cannot stat `rar': No such file or directory cp: cannot stat `unrar': No such file or directory can anyone please... (7 Replies)
Discussion started by: peter_071
7 Replies

11. UNIX for Dummies Questions & Answers

How To Split A File In Two Rar Parts?

I Am connected to Whatbox.ca Seed Box Via SSH!! i have a file named avicii.mp3. I Want to split it into two rar parts as Apart1.rar and Apart2.rar So That When i Download Both the parts to My PC And Extract Them They Come out As Whole Avicii.mp3. There is also one more problem!! When I Rar A... (18 Replies)
Discussion started by: anime12345
18 Replies

12. UNIX for Beginners Questions & Answers

Rar files

hi unix expert is there any program in linux to compress files or directory with rar (.rar)? i am using centos 7 many thanks samad (1 Reply)
Discussion started by: abdossamad2003
1 Replies