@NogDogFeb 10.2014 — #[u][url=http://www.php.net/manual/en/function.end.php]end[/url][/u]() takes one argument, which is of type Array and which is passed by reference (the "&" operator before the "$" in the function prototype there.) You are not passing it an array variable, but instead an expression which returns an array. To avoid this warning:
[code=php] $newArray = explode("/", $_SERVER['SCRIPT_NAME']) $sname = end($newArray); unset($newArray); // not really necessary, but will most closely mimic original code [/code]