Rar/setup-Phpdoc专题
安装/配置
目录
需求
构建此扩展不需要其他扩展。
安装
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:
示例 #1 Rar installation
gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure && make && make install
Windows users will enable php_rar.dll
inside of php.ini
in order to
use these functions. PECL 扩展的 DLL 当前不可用。参见
在 Windows 上构建章节。
运行时配置
此扩展没有在 php.ini
中定义配置指令。
资源类型
This extension registers three internal classes: The archive representations returned by rar_open – RarArchive –, the entry representations returned by rar_list and <span class="function">rar_entry_get – <span class="type">RarEntry and the exception type <span class="type">RarException.
This extension also register a stream resource, called "rar" and a URL wrapper called "rar wrapper" and registered under the prefix "rar".