Log in

View Full Version : Resolved Getting URL Segment



X96 Web Design
08-09-2010, 03:49 AM
Hi All,

I'm not sure how to explain this; I want to be able to grab the value of the URL after a php file.

For example, if I wanted to show my About page, and the URL was example.com/index.php/about, how would I find the "about" part after index.php?

Thanks,
Alex

traq
08-09-2010, 05:22 AM
(i have to put some lowercase writing or the forum lower-cases my script!)

$_SERVER["PATH_INFO"]

X96 Web Design
08-09-2010, 05:42 AM
Thank you! Works perfectly. :D

- Alex