ASP Server
The Server object is used to access properties and methods about the server.
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
Properties | Description |
---|---|
ScriptTimeout | Set or return the maximum time (seconds) that a script can run before it terminates. |
Method
Method | Description |
---|---|
CreateObject | Create an instance of an object. |
Execute | Execute an ASP file from another ASP file. |
GetLastError() | Returns an ASPError object that can describe the error status that has occurred. |
HTMLEncode | Apply HTML encoding to a specified string. |
MapPath | Map a specified path to a physical path. |
Transfer | Send (transfer) all the information created in one ASP file to another ASP file. |
URLEncode | Apply URL encoding rules to the specified string. |