I'm trying to get php to return the name of a directory like this:
http://www.foobar.com/example.php where example.php returns the name of the current directory as "" or "/" and
http://www.foobar.com/example_folder/example.php where php reutrns the name of the current directory as "example_folder" or "/example
_folder"
I found that getcwd() returns the file path, but that's not what I'm looking for