Re: Re: HTTP_SESSION_VARS

From: Date: Thu, 02 Aug 2001 06:27:34 +0000
Subject: Re: Re: HTTP_SESSION_VARS
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-60850@lists.php.net to get a copy of this message
Actually after an hours nap i found the problem. It is not something anyone could have helped me with since i didnt give complete enough code. the very simple solution was stupidly i used it in a function without declaring ir global. all is good now. ----- Original Message ----- From: "Richard Lynch" <ceo@l-i-e.com> To: <php-general@lists.php.net> Sent: Thursday, August 02, 2001 3:17 AM Subject: [PHP] Re: HTTP_SESSION_VARS > >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? > > Spell it with SESSION, not session. > > $HTTP_session_VARS ain't nothing unless you set it. > > -- > WARNING richard@zend.com address is an endangered species -- Use > ceo@l-i-e.com > Wanna help me out? Like Music? Buy a CD: > http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#60850) next »