Class we_util_Sys_Server_Apache

Description

utility class for apache web server

Located in /util/Sys/Server/Apache.php (line 28)

we_util_Sys
   |
   --we_util_Sys_Server
      |
      --we_util_Sys_Server_Apache
Method Summary
static bool module ([string $module = ""])
static string version ()
static void versionCompare ([int $reference = ""], [string $operator = ""])
Methods
static method module (line 37)

checks if a specified module is loaded

  • return: true/false
  • access: public
static bool module ([string $module = ""])
  • string $module: name of an apache module
static method version (line 63)

returns the apache version string, if it is available.

This depends on settings in httpd.conf ServerTokens, possible return values are: ServerTokens Full - Apache/1.3.29 (Unix) PHP/4.3.4 ServerTokens Full - Apache/2.0.55 (Win32) DAV/2 ServerTokens OS - Apache/2.0.55 (Win32) ServerTokens Minor - Apache/2.0 ServerTokens Minimal - Apache/2.0.55 ServerTokens Major - Apache/2 ServerTokens Prod - Apache

  • return: apache version or (bool)false, if there was an error reading the version string.
  • access: public
static string version ()
static method versionCompare (line 80)

compares specified apache version with the currently installed apache version

static void versionCompare ([int $reference = ""], [string $operator = ""])
  • int $reference: target version to be compared to current apache version
  • string $operator

Inherited Methods

Inherited From we_util_Sys_Server

we_util_Sys_Server::getDocroot()
we_util_Sys_Server::getHost()
we_util_Sys_Server::getHostUri()
we_util_Sys_Server::getPort()
we_util_Sys_Server::getProtocol()
we_util_Sys_Server::isApache()
we_util_Sys_Server::isIIS()
we_util_Sys_Server::product()

Inherited From we_util_Sys

we_util_Sys::_versionCompare()

Documentation generated on Mon, 01 Sep 2008 11:35:32 +0200 by phpDocumentor 1.4.0