RarArchive::getComment

(PECL rar >= 2.0.0) Get comment text from the RAR archive public string RarArchive::getComment ( void ) Object oriented style (method): Procedural style: string rar_comment_get ( RarArchive $rarfile ) Get the (global) comment stored in the RAR archive. It may be up to 64 KiB long. Note: This extension does not support comments at the entry level. Parameters: rarfile

RarArchive::getEntries

(PECL rar >= 2.0.0) Get full list of entries from the RAR archive public array RarArchive::getEntries ( void ) Object oriented style (method): Procedural style: array rar_list ( RarArchive $rarfile ) Get entries list (files and directories) from the RAR archive. Note: If the archive has entries with the same name, this method, together with RarArchive foreach iteration and array-like access with numeric indexes, are

RarArchive::getEntry

(PECL rar >= 2.0.0) Get entry object from the RAR archive public RarEntry RarArchive::getEntry ( string $entryname ) Object oriented style (method): Procedural style: RarEntry rar_entry_get ( RarArchive $rarfile , string $entryname ) Get entry object (file or directory) from the RAR archive. Note: You can also get entry objects using RarArchive::getEntries(). Note that a RAR archive can have multiple entries with the

RarArchive::isBroken

(PECL rar >= 3.0.0) Test whether an archive is broken (incomplete) public bool RarArchive::isBroken ( void ) Object oriented style (method): 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: rarfile A RarArchive object, opened with r

RarArchive::isSolid

(PECL rar >= 2.0.0) Check whether the RAR archive is solid public bool RarArchive::isSolid ( void ) Object oriented style (method): 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().

RarArchive::open

(PECL rar >= 2.0.0) Open RAR archive public static RarArchive RarArchive::open ( string $filename [, string $password = NULL [, callable $volume_callback = NULL ]] ) Object oriented style (method): 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 m

RarArchive::setAllowBroken

(PECL rar >= 3.0.0) Whether opening broken archives is allowed public bool RarArchive::setAllowBroken ( bool $allow_broken ) Object oriented style (method): Procedural style: bool rar_allow_broken_set ( RarArchive $rarfile , bool $allow_broken ) This method defines whether broken archives can be read or all the operations that attempt to extract the archive entries will fail. Broken archives are archives for which no err

RarArchive::__toString

(PECL rar >= 2.0.0) Get text representation public string RarArchive::__toString ( void ) Provides a string representation for this RarArchive object. It currently shows the full path name of the archive volume that was opened and whether the resource is valid or was already closed through a call to RarArchive::close(). This method may be used only for debugging purposes, as there are no guarantees as to which informati

RarEntry::extract

(PECL rar >= 0.1) Extract entry from the archive public bool RarEntry::extract ( string $dir [, string $filepath = "" [, string $password = NULL [, bool $extended_data = false ]]] ) RarEntry::extract() extracts the entry's data. It will create new file in the specified dir with the name identical to the entry's name, unless the second argument is specified. See below for more information. Parameters:

RarEntry::getAttr

(PECL rar >= 0.1) Get attributes of the entry public int RarEntry::getAttr ( void ) Returns the OS-dependent attributes of the archive entry. Returns: Returns the attributes or FALSE on error. Examples: RarEntry::getAttr() example <?php $rar_file = rar_open('example.rar') or die("Can't open Rar archive"); $entry =