What is the easiest way to determine the current path name with PHP?
Option #1 - $current_path = $_SERVER['REQUEST_URI']
Option #2 - opendir / readdir ?
Is there another one?
For me right now I am using option one and truncate out the PHP filename, reverse, split, reverse again to get the current path name...
Is there a better one?