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

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


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

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


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
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date