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]
- [PHP] String Comparison Jason Bell
- Re: [PHP] String Comparison Jason Bell
- [PHP] Re: String Comparison Phil Driscoll
- [PHP] Re: String Comparison Adrian Ciutureanu
- [PHP] string comparison Bas Jobsen
- RE: [PHP] string comparison John Holmes

