note 4942 modified in filetype by ronabop

From: Date: Mon, 02 Oct 2000 10:14:13 +0000
Subject: note 4942 modified in filetype by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5865@lists.php.net to get a copy of this message
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. http://www.php.net/manual/function.filetype.php

« previous php.notes (#5865) next »