Find the Physical Path to a File using Request.ServerVariables("Path_Info")

The code below will return the physical path of the file that you include this code in. The code uses the Server.MapPath function and one of the servervariables.

<%
'This will return the physical path to a file that you include this code in
Response.write Server.MapPath(Request.ServerVariables("Path_Info"))
%>

Get the best asp hosting provider from web-hosting-top.com and save up to 30%

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.

Global ASP.NET Hosting Leader - Click Here