Should we manually set $_SERVER['REQUEST_URI']
or will the server itself provide it?
Because I am not able to get it in my code,
$Gpath = explode('/login.php', $_SERVER['REQUEST_URI']);
Should we manually set $_SERVER['REQUEST_URI']
or will the server itself provide it?
Because I am not able to get it in my code,
$Gpath = explode('/login.php', $_SERVER['REQUEST_URI']);
Nope, we shouldn't. It's set by the server.
Your code makes not much sense though.
You'd better tell us what it's intended for, so we can tell you a proper way