[PHP] RE: Explanation of cookie behavior

2004-04-15 Thread Ryan Schefke
.one more note: If the user checks the "remember me" box then that's how I set the two cookes; however, if they don't click the "remember me" box then I set the cookies like this: setcookie ("authenticate_ck", "$daysRemaining"); //set cookie for active account, will terminate when browser w

Re: [PHP] Re: Explanation

2001-11-28 Thread Gerard Samuel
Thank you for your explanation on this one guys. This is a real saver, got to start coding with this shorthand. Yes I found a reference in the manual but it was sparse. I found this explanation also, so keep this for the archives... http://www.faqts.com/knowledge_base/view.phtml/aid/5742/fid/38 T

[PHP] Re: Explanation

2001-11-28 Thread Fred
The manual is rather sparse about the ternary operator, you may find one sentence about it here: http://php.he.net/manual/en/language.operators.comparison.php Basically if the expression before the ? evaluates to true then the whole expression evaluates to the expression after the ?. If the expr