Liquid Fire Posted November 9, 2006 Share Posted November 9, 2006 ok here is the code in question$_SITE_CONFIG["admin_password"] = "v4ndr34d"; function CheckAdminStatus($status) { if($status == $_SITE_CONFIG["admin_password"]) { return true; } else { return false; } }I am getting error:Notice: Undefined variable: _SITE_CONFIG in C:\WebRoot\root\includes\functions.php on line 13Why would i get this when it is clearly define in the beginning of the code. Link to comment https://forums.phpfreaks.com/topic/26742-undefined-variable/ Share on other sites More sharing options...
genericnumber1 Posted November 9, 2006 Share Posted November 9, 2006 variable scopehttp://www.php.net/manual/en/language.variables.scope.php Link to comment https://forums.phpfreaks.com/topic/26742-undefined-variable/#findComment-122304 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.