I need FileInfo extension installed (PECL)
How do I go about getting the FileInfo extension installed on our server? We upload files and I want to have a bit more control over which mime types are uploaded. The user who does the uploads isn't always great at picking the right pdf file or mp3 file.
Thank you for your question. On a server running PHP 5.3 or newer, PECL fileinfo is already installed.
If you are running PHP version 5.2 or older you can issue a shell command from PHP to use the "file" command.
You can view your PHP version in cPanel.
If you have any further questions, feel free to post them below.
Like this Question? Tweet
News / Announcements
WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!