Hi Everyone,
I am making an online storage application using PHP, saving files to a sever and meta data to my database.
I want to assign each file its own graphic dependant on its filetype but have run into some problems.
The standard meta text saves for a files type varies for different files such as PDS Word 2003, excel 2003, etc etc but found that the newer office 2010 saves its filetypes as;
application/vnd.openxmlformats
and thats across the board of applications...
how can i distinguish between word, excel etc ?
it would be eay otherwise, just make some if statements and pull a specific image dependant on the result of the filetype...
Its stumped me.. please help me
Ryan
I am making an online storage application using PHP, saving files to a sever and meta data to my database.
I want to assign each file its own graphic dependant on its filetype but have run into some problems.
The standard meta text saves for a files type varies for different files such as PDS Word 2003, excel 2003, etc etc but found that the newer office 2010 saves its filetypes as;
application/vnd.openxmlformats
and thats across the board of applications...
how can i distinguish between word, excel etc ?
it would be eay otherwise, just make some if statements and pull a specific image dependant on the result of the filetype...
Its stumped me.. please help me
Ryan