The Server object is used to access properties and methods on the server.
When was a file last modified?
Check when a file was last modified.
Open a text file for reading
Open "Textfile.txt" for reading.
The ASP Server object is used to access properties and methods on the server. Its properties and methods are described below:
| Property | Description |
|---|---|
| ScriptTimeout | Sets or returns the maximum number of seconds a script can run before it is terminated |
| Method | Description |
|---|---|
| CreateObject | Creates an instance of an object |
| Execute | Executes an ASP file from inside another ASP file |
| GetLastError() | Returns an ASPError object that describes the error condition that occurred |
| HTMLEncode | Applies HTML encoding to a specified string |
| MapPath | Maps a specified path to a physical path |
| Transfer | Sends (transfers) all the information created in one ASP file to a second ASP file |
| URLEncode | Applies URL encoding rules to a specified string |
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.