NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sessions & Functions question

Sexton, David David.SextonJr at ubspw.com
Mon Jun 2 09:26:40 EDT 2003


Depeneding on the version you're using, you could just use the
$_SESSION['varname'] superglobal... no global keyword required. Just be
careful with it before version 4.3.1 - I had some issues with it on 4.1.2.

-----Original Message-----
From: Christopher R. Merlo [mailto:cmerlo at turing.matcmp.ncc.edu]
Sent: Saturday, May 31, 2003 6:25 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Sessions & Functions question


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.

-- 
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