Wondering if anyone can help, i'm trying to get the Rar functions working with PHP. (http://us3.php.net/manual/en/ref.rar.php)
When i run the following code:
- Code: Select all
$file = "test.rar";
$handle = rar_open($file);
I get this message:
Fatal error: Call to undefined function rar_open() in C:\xampp2\htdocs\rartest\index.php on line 4
Then I added the following line to my php.ini file located at 'C:\xampp2\php\php.ini '
- Code: Select all
extension=php_rar.dll
After restarting Xampp and refreshing my browser, I now get a Windows message saying:
Apache HTTP Server has stopped working
Here's some settings from phpinfo()
- Code: Select all
PHP Version 5.2.9
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\xampp2\php\php.ini
--
rar
Rar support enabled
Extension version 1.0.1-dev
Revision $Revision: 1.24 $
UnRAR version 3.71 beta 1
Any help will be really appreciated.
Thanks, James.