read microsoft excel, word and powerpoint info using PHP
<p>i want my PHPapp to read a file and tell me if it's a word, excel or powerpoint file. my first approach was to read the extension of the file. But microsoft has different file extension names, and i was also wondering about files uploaded by a mac (with no filename extension)</p>

<p>So, maybe the answer is using mimetypes. Do you know a better approach for this?</p>
