note 4942 deleted from function.filetype by sniper

From: Date: Fri, 31 Oct 2003 13:36:51 +0000
Subject: note 4942 deleted from function.filetype by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59586@lists.php.net to get a copy of this message
Note Submitter: justin@openup.com ---- If you are looking instead to find out the mime-type of a file (assuming you already know it's of type 'file') then the best way I've found is to use the 'file' command in a system call (on *NIX anyway). However, I have found a shortcut in case you need to know whether an image is a GIF, JPEG, or PNG: use the GetImageSize() function which returns as one of its array elements the type of image.

« previous php.notes (#59586) next »