IT. Expert System.

PHP

Check whether the RAR archive is solid


RarArchive::isSolid

rar_solid_is

(PECL rar >= 2.0.0)

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

Description

Object oriented style (method):

public bool RarArchive::isSolid ( void )

Procedural style:

bool rar_solid_is ( RarArchive $rarfile )

Check whether the RAR archive is solid. Individual file extraction is slower on solid archives.

Parameters

rarfile

A RarArchive object, opened with rar_open().

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') ."\n";
echo 
"$arch2: " . ($arch2->isSolid()?'yes':'no') . "\n";
?>

The above example will output something similar to:

 RAR Archive "C:\php_rar\trunk\tests\store_method.rar": no RAR Archive "C:\php_rar\trunk\tests\solid.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') ."\n";
echo 
"$arch2: " . (rar_solid_is($arch2)?'yes':'no') . "\n";
?>



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 55 / 158748767. Delta: 0.02921 с