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?
@NogDogSep 16.2007 — #You can use the [url=http://pear.php.net/manual/en/package.tools.mime-type.detecting.php]auto_detect() method[/url] of the [url=http://pear.php.net/manual/en/package.tools.mime-type.php]PEAR MIME_type package[/url].