Re: HTTP_SESSION_VARS

From: Date: Wed, 01 Aug 2001 17:46:02 +0000
Subject: Re: HTTP_SESSION_VARS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60716@lists.php.net to get a copy of this message
SORRY i just coppied it wrong the actual code is capitalized while(list($k, $v) = each($HTTP_SESSION_VARS)) ----- Original Message ----- From: "Faisal Nasim" <faisal@nasim.org> To: "Jon Yaggie" <dmsales@design-monster.com> Sent: Thursday, August 02, 2001 12:23 AM Subject: Re: [PHP] HTTP_SESSION_VARS > Make session capital! > > $HTTP_SESSION_VARS instead of $HTTP_session_VARS > > Might also use: > > foreach ( $HTTP_SESSION_VARS as $k => $v ) > { > // etc > } > > Faisal Nasim > FreeWebWare.com > > At 12:17 AM 8/2/2001 +0700, you wrote: > >when i try this then .. . . > > > > > > > >while (list ($key, $val) = each ($HTTP_session_VARS)) { > > echo "$key => $val<br>"; > >} > > > >i get the error - > > > >Warning: Variable passed to each() is not an array or object in > >/var/www/html/adult/func.php on line 5 > > > >and well it looks liek an array to me . . is there soemthing i can do to > >make this work? > > > > > > > >Thank You, > > > >Jon Yaggie > >www.design-monster.com > > > >And they were singing . . . > > > >'100 little bugs in the code > >100 bugs in the code > >fix one bug, compile it again > >101 little bugs in the code > > > >101 little bugs in the code . . .' > > > >And it continued until they reached 0

« previous php.general (#60716) next »