I'm trying to determine the output on some pages based on the URI folder a person is in
for example:
www.domain.com/about/
www.domain.com/contact/
etc...
How can I grab just the folder name w/o slashes ? (no sub folders to deal with)
Thanks
You could use [man]pathinfo/man, possibly after using [man]parse_url/man.
all set... thanks laser
$uri = $_SERVER["REQUEST_URI"]; preg_match('/\/(.*)\//',$uri,$folder);