[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

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

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