[nycphp-talk] Problems with require and variables
Phil Powell
soazine at erols.com
Thu Jan 16 02:27:47 EST 2003
Which is what happened until I put the vars into a session variable, then
all was well! :)
Thanx
Phil
----- Original Message -----
From: "Analysis & Solutions" <danielc at analysisandsolutions.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Thursday, January 16, 2003 2:07 AM
Subject: Re: [nycphp-talk] Problems with require and variables
> On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote:
> >
> > However, when display.php finishes being "required", I lose all of my
> > variables that I need for view.php. How do I retain them?? How can I
> > ensure that these variables in display.php will also exist in view.php?
>
> Once it's required, everything that's happened is still there. It's as if
> you had one big file rather than multiple smaller files.
>
> Chances are you are trying to use those variables in functions in which
> you didn't global the array.
>
> --Dan
>
> --
> PHP classes that make web design easier
> SqlSolution.info | LayoutSolution.info | FormSolution.info
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
More information about the talk
mailing list