Click to See Complete Forum and Search --> : Document Root?


SubZane
06-03-2003, 07:49 AM
In Apache/PHP we have the $DOCUMENT_ROOT variable. Is there a variable like this in ASP/IIS?

SubZane
06-05-2003, 05:42 AM
With PHP/APache I can link to files by using teh DOCUMENT_ROOT variable..
But those ASP/IIS variables are basicly useless for that purpose :(
The only solution I can see is to make static links and that seems rather silly

got another solution?

gerjan
06-05-2003, 06:02 AM
Request.ServerVariables("PATH_INFO")
This looks the same to me as $DOCUMENT_ROOT?

Otherwise, can't you put the path to your root in an virtual included file?
Looks to me it works the same!