[PHP] accessing a global in a function???

2001-09-04 Thread Aaron Moore

Sorry about the newbie question. I have a config.php file which contains a
string which I would like a function to access. How do i make it global so
that it can do so.

Thanks for your help



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] accessing a global in a function???

2001-09-04 Thread ERISEN, Mehmet Kamil

I have seen people using 
include (config.php);
in the begining of the page for that purpose.

--- Aaron Moore [EMAIL PROTECTED] wrote:
 Sorry about the newbie question. I have a config.php file
 which contains a
 string which I would like a function to access. How do i
 make it global so
 that it can do so.
 
 Thanks for your help
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] accessing a global in a function???

2001-09-04 Thread Rasmus Lerdorf

http://www.php.net/manual/en/language.variables.scope.php

On Tue, 4 Sep 2001, Aaron Moore wrote:

 Sorry about the newbie question. I have a config.php file which contains a
 string which I would like a function to access. How do i make it global so
 that it can do so.

 Thanks for your help






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]