The following code is giving "ERROR: E_Strict - Only variables should be passed by reference.
Code: Select all
$CURRENT_PAGE = array("NAME"=>end(explode("/",$_SERVER["SCRIPT_NAME"])), "AUTH_LEVEL"=>0, "SSL"=>false);Thanks
Moderator: General Moderators
Code: Select all
$CURRENT_PAGE = array("NAME"=>end(explode("/",$_SERVER["SCRIPT_NAME"])), "AUTH_LEVEL"=>0, "SSL"=>false);Code: Select all
$CURRENT_PAGE = "";
$CURRENT_PAGE = array("NAME"=>(end(explode("/",$_SERVER["SCRIPT_NAME"]))), "AUTH_LEVEL"=>0, "SSL"=>false);Code: Select all
end(explode("/",$_SERVER["SCRIPT_NAME"]))Code: Select all
$tmp = explode("/", $_SERVER["SCRIPT_NAME"]);
end($tmp);