Version

Description

Returns the version of the Web server you are running.

Applies to

PSServerClass object

Syntax

psServer.Version( )

Returns

String

Usage

At runtime, Version gets the version of the Web server software from the SERVER_SOFTWARE server environment variable.

Examples

Example 1

The following example tests to see which application server is running and performs platform-specific logic that varies depending on the outcome of the test:

server = psServer.Type();
version = psServer.Version();
if (server == "Apache Tomcat") {
		if (version == "5.0.0") {
		// Perform 5.0.0-specific logic
		}
		if (version == "4.1.13") {
		//Perform 4.1.13-specific logic
		}
} 

else {
// Perform EAServer-specific logic
}