I'd like to know what folder a certain file is in, and change the page accordingly (e.g., put subtitle "Faculty" when the page is in the faculty folder --http://www.psych.udel.edu/faculty/index.php, or .../faculty/detail.php...)
Any suggestions on how to get the URL from PHP, and then search for a segment (e.g., faculty, classes....).
Thanks!
-John.