Re: [PHP] Re: global scope issue

2003-08-14 Thread Shawn McKenzie
does it matter if a global command has bee issued before with vars other than the $test var? i.e before the include if there is a global $somevar; -Shawn "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): >

[PHP] Re: global scope issue

2003-08-14 Thread Rob Adams
Don't you just hate it when the thread your replying to has gone on to some other thread that you didn't notice? -- Rob "Rob Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm having prob

[PHP] Re: global scope issue

2003-08-14 Thread Ivo Fokkema
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having problems using global vars. I have read the docs and all of the > notes but it's not helping. Simplified example: > > /dir1/script2.php > $test = array ( 'a' => '1', 'b' => '2'); > ?> > > /dir1/script1.php

[PHP] Re: global scope issue

2003-08-14 Thread Rob Adams
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having problems using global vars. I have read the docs and all of the > notes but it's not helping. Simplified example: Simplified? So maybe what you're giving us doesn't include the problem? The scripts below

Re: [PHP] Re: global scope issue

2003-08-14 Thread Shawn McKenzie
Sorry... nevermind. I was developing as part of a team and it seems that my script is included in a function written by someone else. So my vars from my included files are local to the other function and not global. Thanks! Shawn "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

Re: [PHP] Re: global scope issue

2003-08-14 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > > -Original Message- > > From: Ivo Fokkema [mailto:[EMAIL PROTECTED] > > Sent: 13 August 2003 15:45 > > > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > As far as I know, no defi

[PHP] Re: global scope issue

2003-08-14 Thread Shawn McKenzie
OK, so what's the use of having the autoglobal $GLOBALS??? This is contrary to the docs. -Shawn "Ivo Fokkema" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm having problems using global vars. I

RE: [PHP] Re: global scope issue

2003-08-14 Thread Ford, Mike [LSS]
> -Original Message- > From: Ivo Fokkema [mailto:[EMAIL PROTECTED] > Sent: 13 August 2003 15:45 > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm having problems using global vars. I have read the > docs and all of > the > > notes but it's not hel