Re: Authentication, multiple cookies

From: Date: Wed, 06 Sep 2000 04:49:09 +0000
Subject: Re: Authentication, multiple cookies
Groups: php.general 
Request: Send a blank email to php-general+get-15434@lists.php.net to get a copy of this message
In article <p05000a01b5daa93cc8f9@[132.236.170.149]>, am33@cornell.edu (Adriano Manocchia) wrote: > <?PHP > if((!($PHP_AUTH_USER)) | ($ADMIN!="true")): | is a bitwise 'or' rather than logical 'or'. You probably want || here (and in the other place). | is useful only in stuff like this: $mask1 = 1; $mask2 = 2; $mask3 = 4; if ($access & ($mask2 | $mask3)){ //User has bit 2 or 3 (or both) set } -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#15434) next »