Are there built in functions in PHP to find out the filetype. With this I mean if you can quickly find out if it is a html page or a jpeg or a php file. If not, does anybody know a quick alternative solution (without using patterns) ?
patterns are the simplest method mate :-)