NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions & Functions question

Hans Zaunere zaunere at yahoo.com
Sat May 31 21:34:00 EDT 2003


--- "Christopher R. Merlo" <cmerlo at turing.matcmp.ncc.edu> wrote:
> On 2003-05-31 18:05 -0400, Christopher R. Merlo
> <cmerlo at turing.matcmp.ncc.edu> wrote:
> 
> > Here's a weird one:
> 
> Never mind.  :)  After some debugging and RTFMing, I realized that I
> need to use "global" within functions, for stuff that was declared
> outside.

Bingo.  But I'd much prefer using $_SESSION, even if your version of PHP
doesn't support them yet, in which case alias $_SESSION to
$HTTP_SESSION_VARS.  It'll save work in the future.

H


> 
> -- 
> cmerlo at turing.matcmp.ncc.edu        http://turing.matcmp.ncc.edu/~cmerlo
> 
> Windows:  More than enough rope.
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 




More information about the talk mailing list