Matthew Macdonald-Wallace wrote:
On Wed, 2003-11-05 at 16:42, R'twick Niceorgaw wrote:

Matthew Macdonald-Wallace wrote:


On Wed, 2003-11-05 at 16:21, R'twick Niceorgaw wrote:


$GLOBALS["cfg"]["sitevars"]["variable_name"]
or you can use extract ($GLOBALS) at the begining of each function and then use them as
$cfg["sitevars"]["variable_name"]

Works a treat! Thanks for that,


Matt

If you're going to go that route, you might as well turn globals on in the php.ini, and throw the security that having it off provides. I suggest you pass the variable to the function.


function foo ( $this_var ) {
        do some code with $this_var;
        return $this_val;
}

$bar = foo ( $var );

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to