-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 my
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
I finally got it. Thanks. All I
-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
: [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 until I make it global through global
$make_this_global
and then I can
-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 comes out.
();
?
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] include/require inside
, 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 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
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 include() a poster commented that it did
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
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
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
11 matches
Mail list logo