Re: Re: how to detect type of image

From: Date: Wed, 25 Apr 2007 12:14:48 +0000
Subject: Re: Re: how to detect type of image
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-253692@lists.php.net to get a copy of this message
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"

« previous php.general (#253692) next »