PHP question: on my local

PHP question: on my local server (poorbuthappy.localhost), I want a file to include "C:somepathincludes.php". On the live server, I want the same file to include "/home/www/includes.php". This used to work fine when I used relative paths: include ("../../includes.php") in the file doing the including. The includes file is OUTSIDE of the web accessible directory tree. Now my web server has set up path /home/www/" for the includes file and "/pedro/path/" for the file doing the including. This is a problem. I can't use relative paths anymore.

One solution would be to detect which URL I am on before including, but isn't there a better way?

# Jun 15, 2003