Reputation: 2561
i am using xampplite1.7.2 which is using PHP 5.3 but when i use the fileinfo function its giving me error
Call to undefined function finfo_open()
I don't know rather my fileinfo.so is enabled or not. So please someone guide me how to check and how to enable it if its not enabled. Thanks
Upvotes: 2
Views: 7233
Reputation: 27323
you should take a look at the output of phpinfo()
To know if the extension is enabled.
The documentation stats that it's enabled by default on PHP 5.3, so make sure your PHP version is >= 5.3. If not there is a PECL extension.
This extension is enabled by default as of PHP 5.3.0. Before this time, fileinfo was a PECL extension but is no longer maintained there.
Upvotes: 2