Are there alternative methods to retrieve path information in PHP if PATH_INFO is not set in Xampp?

If PATH_INFO is not set in Xampp, an alternative method to retrieve path information in PHP is to use the $_SERVER['REQUEST_URI'] variable. This variable contains the URI which was given in order to access the page. By parsing this variable, you can extract the path information you need.

$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$segments = explode('/', $path);
// Now $segments array contains the path segments