@NogDogMar 07.2021 — #Maybe check your php error log or turn on error reporting and find out what went wrong (like maybe it can't find that file or does not have read permission?).
@NogDogMar 09.2021 — #> @developer_web#1629047 If I got the Global Var spelt wrong then why didn't PHP tell me undefined Global Var ?
Because there's nothing stopping you from making a local variable that looks a lot like a super-global variable. There is nothing special syntax-wise about using $_ to start a variable. Rather, it's a case that PHP has several special variables that start that way to make it less likely you will accidentally use the same name for other variables. In fact, if you unset() a super-global then try to set it again, it's no longer super-global. <i> </i>function test() { echo $_SERVER['LANG']; }
test(); // outputs "en_US.UTF-8" for my computer
unset($_SEVER); test(); // outputs an "Undefined variable: _SERVER" error
$_SERVER['LANG'] = 'whatever'; test() // still outputs an "Undefined variable: _SERVER" error