On Wed, 2003-11-05 at 16:21, R'twick Niceorgaw wrote:$GLOBALS["cfg"]["sitevars"]["variable_name"]
are the variables in config.inc GLOBAL?That sounds familiar, how would I reference them? would it be as
if not, you will have to include config.inc inside every function
or define them as global $cfg etc inside each function .
If you are using a newer version of PHP then try to make use of $GLOBALS array
in config.inc, declare the variables as
$GLOBALS["cfg"]["sitevars"]["variable_name"]=......
$cfg['sitevars']['variable_name'], or
$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"]
R'twick
____ � 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]
