I tried using the original function that I assumed would work:
CODE
<?php
$type = mime_content_type($path); // $path contains the full path to the specified file to be opened.
?>
$type = mime_content_type($path); // $path contains the full path to the specified file to be opened.
?>
But that didn't seem to work. I tried reading into some more stuff and found out it's deprecated, but everything else is for PHP 5. Unfortunately, my web host is providing me with PHP 4. Knowing, however, that mime_content_type() was created for PHP 4 and not working, I'm fairly stuck. I even went as far to edit my php.ini file but there was really nothing I saw to change in the configuration. Asking my host to switch me to PHP 5 is really pretty much a hassle for what I need to do, and besides, I'm afraid a lot of other codes were based in PHP 4 and switching to PHP 5 would f*ck them up.
So, any possible suggestions? I've tried looking into some other functions, but they're so damn long for finding out such a simple thing that I doubt I'd have to use them. Otherwise, hit me with your best shot.