I'm trying to install FileInfo extension on a windows server running PHP 5.2.17. The php installer itself does not have the extension. So I need to install it using PECL or PEAR. PEAR could not find the extension and PECL requires fileinfo.dsp.
How do I supply this file? How do I install FileInfo?
From PHP 5.3 onwards fileinfo is enabled by default
For PHP 5.2 follow steps below (for manual installation)
- Download "Pecl Collection" for your php version from http://www.php.net/releases/
- Extract it and copy php_fileinfo.dll to your php extension folder
- Add (or uncomment) "extension=php_fileinfo.dll" line to php.ini and restart IIS