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)
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)
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)
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)
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)
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)
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)
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)