PSServerClass

Provides a variety of basic services for a Web application.

NoteUnique object A unique instance of the class called psServer is created automatically when you deploy your application. Therefore, you do not need to instantiate psServer. In your scripts, always refer to psServer as the object instance of this class.

Methods

PSServerClass method

Description

CreateConnection

Creates a new database connection

GetConnection

Gets a reference to a connection defined in the Global.asa file (ASP targets)

MapPath

Maps a relative or virtual path to a physical path on the server (ASP targets)

ObjectModelType

Identifies the application server

ObjectModelVersion

Returns the version of the Web Target object model you are using

Type

Identifies the Web server

URLEncode

Applies URL encoding rules to a string

Version

Returns the version of the Web server