Re: Variables scope question
| From: | Mike D | Date: | Wed, 03 Dec 2003 23:47:10 +0000 |
| Subject: | Re: Variables scope question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171751@lists.php.net to get a copy of this message | ||
NEVERMIND - some user error there... (happens once in a while)
It's been a long day ;-)
Thanks
- MD
On 12/3/03 3:36 PM, "Martin Towell" <martin.towell@world.net> wrote:
> This doesn't sound right. It's doesn't behave like this for me.
>
> Can you supply an example?
>
> Martin
>
>> -----Original Message-----
>> From: Mike D [mailto:mike@awn.com]
>> Sent: Thursday, 4 December 2003 10:35 AM
>> To: PHP General list
>> Subject: [PHP] Variables scope question
>>
>>
>> Hello,
>>
>> I have recently noticed something that I wasn't aware of
>> until now. I have
>> index.php which contains include1.txt and include2.txt. If a
>> variable is set
>> in include1.txt it will *only* have a local scope, even if I
>> declare it
>> GLOBAL. Is this normal or a bug?
>>
>> - MD
>>
>> ....................................
>> Mike Dunlop
>> AWN, Inc.
>> // www.awn.com
>> [ e ] webmaster@awn.com
>> [ p ] 323.606.4237
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
....................................
Mike Dunlop
AWN, Inc.
// www.awn.com
[ e ] webmaster@awn.com
[ p ] 323.606.4237