Hi,
Can someone tell me if the following is possible?
I have a file containing some STATIC variables, and some functions e.g.
-------------------------------------------------
$ARCHIVE_INPUT_ FILES = false;
$ARCHIVE_OUTPUT _FILES = false;
$ARCHIVE_CONFIG _FILES = false;
$HTML_BODY_BACK GROUND = "gfx/gradient.gif";
function firstOne
{
// Do something e.g.
echo $HTML_BODY_BACK GROUND;
}
-------------------------------------------------
The functions CANNOT see the variables I have declared at the top, so is
there anything I can do make the functions see the variables i.e.
declare them differently?
Thanks!
- Lee
Can someone tell me if the following is possible?
I have a file containing some STATIC variables, and some functions e.g.
-------------------------------------------------
$ARCHIVE_INPUT_ FILES = false;
$ARCHIVE_OUTPUT _FILES = false;
$ARCHIVE_CONFIG _FILES = false;
$HTML_BODY_BACK GROUND = "gfx/gradient.gif";
function firstOne
{
// Do something e.g.
echo $HTML_BODY_BACK GROUND;
}
-------------------------------------------------
The functions CANNOT see the variables I have declared at the top, so is
there anything I can do make the functions see the variables i.e.
declare them differently?
Thanks!
- Lee
Comment