Hi I am trying to work out why PHP is returning an 'msword' file type when it should be 'excel' so have tested on my Ubuntu box using both the 'file' and 'mimetype' commands. As you can see from the results below they return different results. Can anybody explain why?
root@dev:~# file --mime-type 1.xls
1.xls: application/msword
root@dev:~# mimetype 1.xls
1.xls: application/vnd.ms-excel
I should also note the file in question is returning 'msword' on a Windows Server. It was generated using PHPExcel.
Thanks for your help.