The PHP global variable $_SERVER[‘PATH_INFO’] is a useful parameter that many CMS systems use to beautify their urls. For the following url: www.test.com/index.php/f… $_SERVER[‘PATH_INFO’] = ‘/foo/bar.html’, where $_SERVER[‘QUERY_STRING’] = ‘c= index&M =search’; Usually, when we first start writing PHP programs, we use something like: www.test.com/index.php?c… This URL, this URL not only looks very strange, but it’s also very unfriendly to search engines. Most search engines ignore Query String content when indexing. Google does not ignore Query String, but it gives a higher PR value to other pages that do not contain Query String. Here’s a very simple code to parse PATH_INFO: \

PHP Parse Pathinfo 2. CPAN Pathinfo