Re: [PHP] How do I link to the root directory of the server?

2005-05-05 Thread Richard Lynch
You could just use relative links, or use a full path link, without the http://www.mydomain.com part. Or, you could change application.php to use data from $_SERVER to figure out what URL you should be using. and pick through that data. Somewhere in there you will find what you need to set up

[PHP] How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Hi, I have a file called application.php and in this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG->wwwroot = http://www.mydomain.com; $CFG->dirroot = "/usr/home/myaccount/public_html"; $CFG->admindir = "$CFG->wwwroot/admin"; $CFG->claim