I need to figure out at "runtime" what the name of the folder the php file is in is.
For instance if the file is in this path:
/register5/test.php
I need a way to find out from test.php what the name of the parent folder is (register5 in this case).
Any ideas? 🙂