Article

 

Content


server object ASP reference

Server Object
The Server Object represents the server . This means that it provides several functions relating to what the server may do .

Syntax
Server.property
Server.method

Properties

Property Description
ScriptTimeout An integer with the default value of 90 . This sets or returns the number of seconds that a script in a page can execute before the server aborts and reports an error .

Methods

Method Description
CreateObject("identifier") creates an instance of the object that is identofied by identifier .
Execute("url") stops execution of a page and transfers control to the page specified in "url" . After executing the called .php file, the procedural control is returned to the the original .php file
GetLastError() returns a refernce to an ASPError object that holds details of the last error that occurred
HTMLEncode("string") returns a string that is a copy of the "string" but with all non-HTML characters converted to their HTML equivalents
MapPath("url") maps a relative or virtual path to a physical path
Transfer("url") stops execution of a page and transfers control to the page specified in "url" . After the transfer, procedural control is not returned to the original .php page
URLEncode("string") returns a string that is the same as "string" but with all invalid URL characters converted to proper URL entities