On my website I have added this form allowing authenticated users with special permissions to upload files. However, I want to limit the types of files they can upload, and checking the file's extension isn't the most reliable method. The use of mimetypes would be a better idea, so I started with that. It appeared the function 'mime_content_type' didn't work: Fatal error: Call to undefined function mime_content_type() in /home1/waflix/public_html/test/test.php on line 2 So I hoped I could use the PECL extension recommended here, but I had no such luck: Fatal error: Class 'finfo' not found in /home1/waflix/public_html/test/test.php on line 2 Even after having searched the Internet for a while, I have not been able of finding a good solution. Is there any chance this extension could be installed on the server, or do I have to wait for PHP 6 of which I've heard the extension would be installed by default?