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:
$_
Try this. Works on both windows or linux server..
str_replace('\\','/',dirname(dirname(__FILE__)))