Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Feb 8, 1999

Finding Where Your ISP Stores Your ASP Files

Although your Internet Service Provider (ISP) tells you the virtual directory that holds your Active Server Pages site, you may need to know the actual path where your files reside. For instance, if you are using an Access database, you may need to point your code to the exact location of the .MDB (Access database) file on the ISP's server rather than to a virtual directory.

With the following Active Server Pages script, called path.asp, you can determine the exact path for yourself. Replace "kenc" in the third last line with the name of your virtual directory and then upload the file to your Web site. When you execute your customized version of path.asp, it will display the file system path such as C:\INetPub\WWWRoot\kenc.

 
<%@ Language=VBScript %>
<HTML>
<HEAD>
<TITLE>Real Path</TITLE>
</HEAD>
<BODY>
Your virtual directory is in:<br>
<%=server.MapPath("/kenc")%>
</BODY>
</HTML>
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date