Peter Ford wrote:
I have this structure:
html directory is the only one accessible from outside.
to access config file I can use this:
but this is the structure on my local/development machine. once the site
is done it will be moved to "production" server and the structure will be
to "automate" the document_root I define on the begining of the page
it works but I think it's not good solution. or at least - it's not nice
Outside of a define, you could have used dirname($_SERVER["DOCUMENT_ROOT]), but
in a define, that's not going to work.
I think you're stuck with your inelegance...
actually, it works
echo "?: ".CONFIG_PATH; // /home/lamp/mydomain/config
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php