ASP Server



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


tryitimg.gif

Try it - Example

When was the last time this file was modified?
Detect the last modification time of the file.

Open and read a text file
Open the file "Textfile.txt" for reading.

Homemade click counter


Server object

The ASP Server object is used to access the properties and methods of the server. Its properties and methods are described as follows:

Properties

PropertiesDescription
ScriptTimeout Set or return the maximum time (seconds) that a script can run before it terminates.

Method

MethodDescription
CreateObjectCreate an instance of an object.
ExecuteExecute an ASP file from another ASP file.
GetLastError()Returns an ASPError object that can describe the error status that has occurred.
HTMLEncodeApply HTML encoding to a specified string.
MapPathMap a specified path to a physical path.
TransferSend (transfer) all the information created in one ASP file to another ASP file.
URLEncodeApply URL encoding rules to the specified string.