Actually, using REQUEST_URI is the best way. PATH_INFO is a reference to the script file being called, whereas REQUEST_URI is the URI sent to the browser. As you're using a URI for a file that doesn't actually exist, PATH_INFO is not going to work.
Using Apache, you can call a PHP script as a directory:
http://www.server.com/test.php
can be called as:
http://www.server.com/test/
If you add some more data to there:
http://www.server.com/test/some/thing
you can pick this up in your test.php script:
$bits=explode("/", $_SERVER["REQUEST_URI"]);
$bits now contains 3 elements - "test", "some" and "thing".
If you're using Apache and you can get access to either the httpd.conf or .htaccess, using MOD_REWRITE is the best method for this. I use it to redirect requests through a main PHP file, which can sort out which pages the user actually wants (and sort out templates, database access and authentication). The script uses the REQUEST_URI variable to see what was requested, and then work out what it should serve.