Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP Server Object

ASP Server Object


The Server object is used to access properties and methods related to the server.


Try it - Example

When Was This File Last Modified?
Detect the last modified time of a file.

Opening and Reading a Text File
Open the file "Textfile.txt" for reading.

A Homemade Hit Counter


Server Object

The ASP Server object is used to access properties and methods related to the server. Its properties and methods are described below:

property

property Description
ScriptTimeout Sets or returns the maximum amount of time (in seconds) a script can run before it terminates.

Method

Method Description
CreateObject Creates an instance of an object.
Execute Executes an ASP file from another ASP file.
GetLastError() Returns an ASPError object that describes the error that occurred.
HTMLEncode Applies HTML encoding to a specified string.
MapPath Maps a specified path to a physical path.
Transfer Sends (transfers) all information created in one ASP file to another ASP file.
URLEncode Applies URL encoding rules to a specified string.