Re: getimagesize() to find type?

From: Date: Fri, 16 Jan 2004 16:44:15 +0000
Subject: Re: getimagesize() to find type?
Groups: php.general 
Request: Send a blank email to php-general+get-174844@lists.php.net to get a copy of this message
[snip] (1) How would I do that (use getimagesize() instead to find type)? [/snip] http://php.net/getimagesize [snip] (2) Stupid question: how do I say if ($_FILES['imagefile']['type'] != "image/pjpeg") and add "image/jpeg" to that constraint? [/snip] there are many ways, I will show you an easy one if ($_FILES['imagefile']['type'] != "image/pjpeg" && $_FILES['imagefile']['type'] != "image/jpeg")

« previous php.general (#174844) next »