In PHP, what would be the cleanest way to get the parent directory of the current running script relative to the www root? Assume I have:
$_
This is also a possible solution
$relative = '/relative/path/to/script/'; $absolute = __DIR__. '/../' .$relative;