p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Databases (http://p2p.wrox.com/forumdisplay.php?f=62)
-   -   server.mappath (http://p2p.wrox.com/showthread.php?t=3540)

kyootepuffy September 5th, 2003 03:50 PM

server.mappath
 
I have questions about server mappath.
If my virtual path is www.example.com/folder1/folder2/map.htm, what is my server mappath expression would be?

server.mappath(".../folder1/folder2/map.htm") ????


Imar September 5th, 2003 04:17 PM

Hi there,

No, it would / could start at the root of your site:
Code:

Server.MapPath("/folder1/folder2/map.htm")
would return the physical location of the file with this URL:

www.example.com/folder1/folder2/map.htm

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


All times are GMT -4. The time now is 07:37 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.