How to get my checking MIME type script to work? (PHP)
<p>For this script, it checks to see if the file is a microsoft words doc or ppt.
I am not sure why this isn't running because it works for image MIME and text/plain.</p>

<p>I am using PHP 5.3.1 so it should have all the MIME types installed already right?</p>

<p>I am uploading words and powerpoint 2007.</p>

<pre><code>//Does the file have the right MIME type?
if ($_FILES['userfile']['type'] !='application/msword') {
    echo 'Problem: file is not words doc.';
    exit;
}
</code></pre>

<p>IF I can't upload msword, is there a way to convert the words doc into a image type?</p>
