Hi. I've scoured this board for the last 2.5 hours, but can't seem to find the solution to my problem. I am trying to modify my php code to make my site completely portable (domain-name independent), and so I can more easily write it on my testing server, then upload to the live server once completed. Therefore, I want to avoid using absolute links as much as possible. I have written a file (config.inc) that contains the global config settings, and included it with each php file. I tried to set the base path using two different methods, which both give me the same result: $config['root'] = '/hsphere/local/home/myaccount/mysite.com/'; AND $config['docRoot'] = $_SERVER['DOCUMENT_ROOT']; However, when I try to use either in a link, I get the following address result: http://www.mysite.com/hsphere/local/home/myaccount/mysite.com/index.php That is clearly wrong--I wanted this instead: http://www.mysite.com/index.php I can easily get the desired result by using $_SERVER['HTTP_HOST'], but it's my understanding that this absolute reference will make the site not portable (it's always looking for http://www.mysite.com). Anyone know how to achieve my objective? Ultimately, I would like to do something like the following, and it act like a normal relative reference (i.e. ../../docs/misc/example.html): <a href="<?php echo $_SERVER['DOCUMENT_ROOT']?>/docs/misc/example.html">Test Link</a> Thanks in advance...