PHP 8.5.0 Alpha 2 available for testing

Instalación

Rar está actualmente disponible a través de PECL » https://pecl.php.net/package/rar.

Puede utilizarse el asistente de instalación PECL para instalar la extensión Rar, utilizando el siguiente comando: pecl -v install rar.

Asimismo, puede descargarse el paquete tar.gz e instalarse Rar manualmente:

Ejemplo #1 Instalación de Rar

gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure && make && make install

Los usuarios de Windows deben activar la biblioteca php_rar.dll en el archivo php.ini para utilizar estas funciones.

add a note

User Contributed Notes 2 notes

up
12
ohcc at 163 dot com
9 years ago
Windows users download php_rar.dll at http://pecl.php.net/package/rar

0. click the DLL link for Windows

1. download php_rar.dll for your php version

2. copy php_rar.dll to the "ext" folder

3. append the following directive to the [php] section of your working php.ini, you can search "extension=" and append it to the last extension directive.

extension=php_rar.dll

4. restart your web server and enjoy.
up
3
cristianbzdg at botosani dot ro
14 years ago
After installing RAR 2.0.0 extension in PHP 5.3.3 on OpenSUSE 11.3 using pecl command line, i had to enable it by creating a file named
/etc/php5/conf.d/rar.ini
which contains this line
extension=rar.so
To Top