Confused on Session Register

From: Date: Mon, 15 Apr 2002 20:16:58 +0000
Subject: Confused on Session Register
Groups: php.general 
Request: Send a blank email to php-general+get-93076@lists.php.net to get a copy of this message
Hi All I was trying to write a PHP session and was confused whether to use session_register or $_SESSION. Anyone know when to use either of these? (Or an interpretation of the following line)? Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for security and code readablity. With $_SESSION or $HTTP_SESSION_VARS, there is no need to use session_register()/session_unregister()/session_is_registered() functions. Users can access session variable like a normal variable. Thanks dave lash > ---------- > From: Tyler Longren[SMTP:tyler@captainjack.com] > Sent: Monday, April 15, 2002 2:48 PM > To: Tom Beidler; php list > Subject: Re: [PHP] calculating US holidays > > <? > $month = date("m"); > $day = date("d"); > if ($month == "10" && $day == "31") { > print "It's Halloween!"; > } > ?> > > you could do something similar to that. > > tyler > > ----- Original Message ----- > From: "Tom Beidler" <tom@orbittechservices.com> > To: "php list" <php-general@lists.php.net> > Sent: Monday, April 15, 2002 2:17 PM > Subject: [PHP] calculating US holidays > > > > I need to calculate the date to see if it's a holiday, i.e. is today > > presidents day, which happens to be the third monday of february. Can > > someone point me to some code that can do that? > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#93076) next »