Ok say i have a directory structure, such as
mysite
folder1 folder2
index.php index.php
and i was at the index.php file.
How would I get the name of the directory 'folder1' or 'folder2' whichever folder my index file is in?
Is there a simple function for this?
Thanks for your help