How do you get the mime-type of a file?
I basically want to check that the file is editable as in .html/.txt/.php etc and not and image or .exe,.ico etc, any ideas?
You can use the auto_detect() method of the PEAR MIME_type package.
you might also try is_writable() http://us3.php.net/manual/en/function.is-writable.php
Cool, thanks guys!