RE: [PHP] include/require inside of function

2003-07-09 Thread Ow Mun Heng
[LSS] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 6:20 PM To: Ow Mun Heng; Ford, Mike [LSS] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside of function > -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 09 July 2003 03:44 >

RE: [PHP] include/require inside of function

2003-07-09 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 09 July 2003 03:44 > > I finally got it. Thanks. All I needed to do was just > define global > $page_title inside the function to denote that I wanted to use that > variable. > > One other quick question, in

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
} } --- --index.php-- Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 11:34 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] in

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 08 July 2003 15:53 > > Here's the thing.. I declared $page_title = "My Page Title" in a > file called config.php which is included in the index.php > page. when I tried > to -> echo $page_title <- Nothing com

RE: [PHP] include/require inside of function

2003-07-08 Thread Ow Mun Heng
n Heng Cc: [EMAIL PROTECTED] Subject: RE: [PHP] include/require inside of function > -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 07 July 2003 04:34 > > Here's My question, a variable is not actually global is not > actually global

RE: [PHP] include/require inside of function

2003-07-08 Thread Ford, Mike [LSS]
> -Original Message- > From: Ow Mun Heng [mailto:[EMAIL PROTECTED] > Sent: 07 July 2003 04:34 > > Here's My question, a variable is not actually global is not > actually global until I make it global through "global > $make_this_global" > and then I can assess it using $GLOBAL[$make

RE: [PHP] include/require inside of function

2003-07-06 Thread Ow Mun Heng
Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Saturday, July 05, 2003 12:39 AM To: Rasmus Lerdorf Cc: Aric Caley; [EMAIL PROTECTED] Subject: Re: [PHP] include/require inside of function Hi, If the

Re: [PHP] include/require inside of function

2003-07-04 Thread Greg Beaver
Hi, If the file you are including is of your own authorage (I know that isn't a word, but whatever :), just refer to global variables always as an index of the $GLOBALS array. This is good practice anyways for any file that might be included by another user, for exactly this issue. I have a f

Re: [PHP] include/require inside of function

2003-07-04 Thread Tom Rogers
Hi, Friday, July 4, 2003, 5:11:18 PM, you wrote: AC> Is there anyway to include a file inside of a function and have the included AC> stuff be global? For instance if I defined a class or a function in that AC> include file, I want to be able to use that class outside of the function. AC> On the

Re: [PHP] include/require inside of function

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Aric Caley wrote: > Is there anyway to include a file inside of a function and have the included > stuff be global? For instance if I defined a class or a function in that > include file, I want to be able to use that class outside of the function. > > On the documentation for