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

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:

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