Talha Bin Shakir
Talha Bin Shakir

Reputation: 2561

How to enable fileinfo.so

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

Answers (2)

wallyk
wallyk

Reputation: 57784

<?php
phpinfo();
?>

will tell you if fileinfo.so is loaded

Upvotes: 0

RageZ
RageZ

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

Related Questions