Re: Re: how to detect type of image WAY OT (but not that far)

From: Date: Wed, 25 Apr 2007 14:28:18 +0000
Subject: Re: Re: how to detect type of image WAY OT (but not that far)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-253718@lists.php.net to get a copy of this message
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 ---

« previous php.general (#253718) next »