I am wanting to display a particular graphic on a site depending on what directory of the site the user is in. What php code can I use to take the url and strip everything off of it but the directory name? I am also thinking about doing something similar with the name of the html file they are browsing as well.
Anything help you could provide would be a great help.. thanks.