I thought this would be simple but I can\'t seem to find a variable of $_SERVER array that has what I\'m looking for.
$_SERVER
Let\'s say my url is http://
http://
In your case, string manipulation is the best solution.
For Example:
substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1);