I\'d like to find the base url of my application, so I can automatically reference other files in my application tree...
So given a file config.php in the base of my
Put this in your config.php (which is in your app's root dir):
$approot = substr(dirname(__FILE__),strlen($_SERVER['DOCUMENT_ROOT']));
I think that'll do it.