Manuál PHP | ||
---|---|---|
Předcházející | Další |
CXXXIV. Rar Functions
Úvod
Rar is a powerful and effective archiver created by Eugene Roshal. This extension gives you possibility to read Rar archives but doesn't support writing Rar archives, because this is not supported by UnRar library and is directly prohibited by it's license.
More information about Rar and UnRar can be found at https://www.rarlabs.com/.
Požadavky
Tyto funkce jsou k dispozici jako součást standardního modulu, který je vždy dostupný.
Konfigurace běhu
Toto rozšíření nemá definováno žádné konfigurační direktivy.
Instalace
Rar is currently available through PECL https://pecl.php.net/package/rar.
Also you can use the PECL installer to install the Rar extension, using the following command: pecl -v install rar.
You can always download the tar.gz package and install Rar by hand:
Windows users can download the extension dll php_rar.dll here: https://snaps.php.net/win32/PECL_STABLE/.
Typy prostředků
There is one resource used in Rar extension: a file descriptor returned by rar_open().
Příklady
This example opens a Rar file archive and extracts each entry to the specified directory.
- Obsah
- rar_close -- Close Rar archive and free all resources
- rar_entry_get -- Get entry object from the Rar archive
- Rar::extract -- Extract entry from the archive
- Rar::getAttr -- Get attributes of the entry
- Rar::getCrc -- Get CRC of the entry
- Rar::getFileTime -- Get entry last modification time
- Rar::getHostOs -- Get entry host OS
- Rar::getMethod -- Get pack method of the entry
- Rar::getName -- Get name of the entry
- Rar::getPackedSize -- Get packed size of the entry
- Rar::getUnpackedSize -- Get unpacked size of the entry
- Rar::getVersion -- Get version of the archiver used to add the entry
- rar_list -- Get entries list from the Rar archive
- rar_open -- Open Rar archive
Předcházející | Domů | Další |
radius_strerror | Nahoru< |