On Tuesday 24 July 2001 23:59, Jason Bell wrote:

> if (image/pjpeg == $type) { print "Type is JPG"; };
>
you need to put image/jpeg in quotes.
Ideally you would also do a safer string comparison than ==
eg if(!strcmp('image/jpeg',$type))
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to