Call to undefined function rar_open() ?

Maxoq

Well-known member
Registered
Joined
Feb 25, 2015
Messages
520
Points
28
I am installing PHP RAR extension on my vps and following this link http://pecl.php.net/package/rar
to compress & decompress rar files. I installed it on server and modify this line extension=rar.so in php.ini file.
But still, when I run a rar function like rar_open(), I get an error : Fatal error: Call to undefined function rar_open()
When I looked in phpinfo (), it shows me no extension RAR
Any ideas to fix this?
 

mobin

Well-known member
Registered
Joined
Jun 22, 2017
Messages
234
Points
28
Since your phpinfo page is not showing that extention, that means its not properly enable dfor your website. Are you able to list it out from command line phpinfo ? if the command line info is showing it, you need to check whether your website is using any custom php.ini file [ you can identify it from the phpinfo page ]. If you have custom php.ini enabled for the website, you need to add the extention to that php.ini file as well.
 
Newer Threads
Replies
9
Views
4,184
Replies
3
Views
1,551
Replies
2
Views
2,525
Replies
10
Views
2,458

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top