Blog Archives

Determining a file’s mimetype with UNIX and PHP

In a recent project, I screwed up bigtime – I created a file upload feature which would store a file’s contents in the database (as BLOBs) but I forgot to keep track of the filename. Needless to say, after beating

Posted in php