(Markup and Style/CSS)
As with all files on the Internet, each needs to have a MIME type assigned. It is the responsibility of webmasters to make sure their files are properly served.
With "text/*" MIME, browsers / search
...heck external link if it is an mp3 file. You will be able to do this:
$sniffer = new Smartycode_Http_Mime();
$contentType = $sniffer->getMime($url);
if('audio/mpeg3' == $contentType) echo 'It i...
...the browser (that is, in case you have gzip compression done by either PHP or Apache).
Same applies to MIME types. A web page can be served with different MIME types (HTML or XHTML, and others) which...