code

Using Server.MapPath() in ASP

September 25, 2005 - 10:14am — Brandon

When configuring ASP scripts or writing new ones, it's often necessary to find the physical path to some file or database on your server. This is especially true if you're ever using the FileSystemObject (FSO). Unfortunately, unlike friendly virtual paths (i.e. /database/users.mdb), physical paths are often hard to remember (i.e. C:\websites\12.34.567.890\domain.com\database\users.mdb). Luckily, there's a really simple way to find the physical path to a file, as long as you know the virtual path. To do this, we take advantage of the Server.MapPath() function.

Tags: Code, asp, code

Listing Server Variables in ASP

September 24, 2005 - 6:24pm — Brandon

The set of server variables contains information like paths, cookie settings, CGI version, and much more. Here I'll explain how to list your server variables.

Syndicate content