Where am I on the local server?
Is there some script I can run that will tell me where on the local server my scripts are located?
I'm running on a local intranet, and to get to a database I've uploaded I think I need to give my script the local address, eg. c:\windows\wwwroot\intranet or some such.
Any ideas? Many thanks in advance,
The following will show the script's location.
Also, if you know the relative path, then you can access it with Server.MapPath(relative_path_here)
strPath = Server.MapPath("/mystuff/data/file.ext")
strPath Would now be something like this (depending on the actual location on your server) "c:\inetpub\wwwroot\mystuff\data\file.ext".
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)