Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Scripting  >  ASP (Active Server Pages)  >  View Article

What is the root path to my ASP application?

Not enough ratingsNot enough ratingsNot enough ratingsNot enough ratingsNot enough ratings

Article

There is one ASP application for each virtual server, which has a root path of the format /content/virtualServerName.

For example, a hosting account with the StartupHost+ package for the domain mydomain.com would have the document root /content/StartupHostPlus/m/y/mydomain.com/web and the ASP application root /content/StartupHostPlus. Therefore, the path to the web folder relative to the ASP application would be /m/y/mydomain.com/web.

To view the full path to your current working directory, you can use:

<%  
' **********************************  
' ***** SHOW CURRENT DIRECTORY *****  
' **********************************  
Response.Write(Request.ServerVariables("PATH_TRANSLATED"))  
%>

This will work under both Linux and Windows hosting packages

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed