I tried searching to see if other people have asked this question but didn't find anything, if it has been asked I'm sorry.
My question is, in PHP, how do you tell the script to start from the root of the web server? For example, I have a linkTo function ( linkTo(url); ) that will send the client to a specified url. But it can send to virtual directories as well. I want to know how to tell it to start from the root. In html you simply use the "/" like this '<a href="/stylesheets/default.css">View my default stylesheet</a>'. But that doesn't seem to work correctly in php. It seems to go all the way back to the root of the DRIVE!? Is there a way to only go back to the root of the web server? BTW, I am running IIS 5.0 with PHP 4.0.5.
Or am I going to have to create a global variable to handle this? I was hoping there was an easy way to do it.
Thanks!
Chad