RarEntry::getMethod

(PECL rar >= 0.1) Get pack method of the entry public int RarEntry::getMethod ( void ) RarEntry::getMethod() returns number of the method used when adding current archive entry. Returns: Returns the method number or FALSE on error. Examples: RarEntry::getMethod() example <?php $rar_file = rar_open('example.rar') or

RarEntry::getName

(PECL rar >= 0.1) Get name of the entry public string RarEntry::getName ( void ) Returns the name (with path) of the archive entry. Returns: Returns the entry name as a string, or FALSE on error. Changelog: 2.0.0 As of version 2.0.0, the returned string is encoded in Unicode/UTF-8. Examples:

RarEntry::getPackedSize

(PECL rar >= 0.1) Get packed size of the entry public int RarEntry::getPackedSize ( void ) Get packed size of the archive entry. Note: Note that on platforms with 32-bit longs (that includes Windows x64), the maximum size returned is capped at 2 GiB. Check the constant PHP_INT_MAX. Returns: Returns the packed size, or FALSE on error. Changelog:

RarEntry::getUnpackedSize

(PECL rar >= 0.1) Get unpacked size of the entry public int RarEntry::getUnpackedSize ( void ) Get unpacked size of the archive entry. Note: Note that on platforms with 32-bit longs (that includes Windows x64), the maximum size returned is capped at 2 GiB. Check the constant PHP_INT_MAX. Returns: Returns the unpacked size, or FALSE on error. Changelog:

RarEntry::getVersion

(PECL rar >= 0.1) Get minimum version of RAR program required to unpack the entry public int RarEntry::getVersion ( void ) Returns minimum version of RAR program (e.g. WinRAR) required to unpack the entry. It is encoded as 10 * major version + minor version. Returns: Returns the version or FALSE on error. Examples: RarEntry::getVers

RarEntry::getFileTime

(PECL rar >= 0.1) Get entry last modification time public string RarEntry::getFileTime ( void ) Gets entry last modification time. Returns: Returns entry last modification time as string in format YYYY-MM-DD HH:II:SS, or FALSE on error.

RarEntry::isDirectory

(PECL rar >= 2.0.0) Test whether an entry represents a directory public bool RarEntry::isDirectory ( void ) Tests whether the current entry is a directory. Returns: Returns TRUE if this entry is a directory and FALSE otherwise.

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 =

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