I\'ve done quite a bit of searching for this, so I\'m sorry if this is a dupe. Anyway, I need to get the name of the folder the current file is in. For example, I want
dirname() used with basename() would work ... also this if you want to get them all:
dirname()
basename()
$folders = explode ('/', $_SERVER['PHP_SELF']);
Now $folders would contain an array of all of the folder names.
Cheers.