Hello all,
I need to determine if a PHP system is running in a directory, for
example
www.example.com/my/dir.
It needs to detect the directory no matter how deep, so if its located
in
www.example.com/dir it will get dir or if its in
www.example.com/dir/dir
it will get dir/dir.
I've tried numerous solutions for this, but no joy so far.
Any ideas?