On Wednesday 25 April 2007 14:14, Richard Davey wrote: > Tijnema ! wrote: > > I believe that mime_content_type does this, by reading a .magic file. > > In a magic file, there are these described i believe. But how would > > you detect (by a magic number) if a script is HTML or PHP? No way :P > > mime_content_type is deprecated, use the FileInfo functions instead. > > Cheers, > > Rich > -- > Zend Certified Engineer > http://www.corephp.co.uk > > "Never trust a computer you can't throw out of a window" I loved this signature. -- --- Børge http://www.arivene.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php