RarEntry::getCrc

(PECL rar >= 0.1) Get CRC of the entry public string RarEntry::getCrc ( void ) Returns an hexadecimal string representation of the CRC of the archive entry. Returns: Returns the CRC of the archive entry or FALSE on error. Changelog: 2.0.0 This method now returns correct values for multiple volume archives.

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::getHostOs

(PECL rar >= 0.1) Get entry host OS public int RarEntry::getHostOs ( void ) Returns the code of the host OS of the archive entry. Returns: Returns the code of the host OS, or FALSE on error. Examples: RarEntry::getHostOs() example (version >= 2.0.0) <?php $rar_file = rar_open('example.rar') or die("Failed to ope

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::getStream

(PECL rar >= 2.0.0) Get file handler for entry public resource RarEntry::getStream ([ string $password ] ) Returns a file handler that supports read operations. This handler provides on-the-fly decompression for this entry. The handler is not invalidated by calling rar_close(). Parameters: password The password used to encrypt this entry. If the entry is not encrypte

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::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.