CXXIII. Rar Functions簡介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 http://www.rarlabs.com/. 需求要編譯本增加模組無需外部庫檔案。 運行時配置本增加模組在 php.ini 中未定義任何配置選項。 安裝Rar is currently available through PECL http://pecl.php.net/package/rar. Also you can use the pear installer to install the Rar extension, using the following command: pear -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: http://snaps.php.net/win32/PECL_STABLE/. 資源類型There is one resource used in Rar extension: a file descriptor returned by rar_open(). 範例
This example opens a Rar file archive and extracts each entry to the specified directory.
| |||