I'm driving mad while trying to install the RAR extension for PHP. I downloaded the RAR Module from PECL, compiled it and got a rar.so extension. I put this into the extension folder given with extension_dir in phpinfo(). In my case: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226. I even set the user rights to the "root" user, so the rights match all other extensions found in that folder.
Then I added entension=rar.so to PHP.INI and restarted Apache. No errors, all fine. To check that I edited the right PHP.INI file I changed the error_reporting option, which had an instant effect. So the edited PHP.INI is the right one. But RAR is still not listed in phpinfo() and using one of those commands:
- Code: Select all
$rar_arch = RarArchive::open($folder.'/'.$file);
$rar_file = rar_open($folder.'/'.$file) or die("Can't open Rar archive");
always results in an error (class not found or function not found).
Although searching for solutions in Google brings up loads of entries, but nothing of help. Does anyone have a clue what to do?
Thanks,
Marco