Class System

Description

Provides information about the server and its operating system

Located in /core/util/System.class.php (line 40)

PHP2Go
   |
   --System
Method Summary
static mixed getIni (string $key)
static float getMicrotime ()
static string getOs ()
static string getServerAPIName ()
static string getSystemName ()
static string getTempDir ()
static bool isGlobalsOn ()
static bool isPHP5 ()
static bool isWindows ()
static bool loadExtension (string $extensionName)
static bool setIni (string $key, mixed $value)
Methods
static method getIni (line 109)

Get the value of a PHP initialization variable

static mixed getIni (string $key)
  • string $key: Variable name
static method getMicrotime (line 189)

Get server's time, expressed in seconds and microseconds

static float getMicrotime ()
static method getOs (line 78)

Get the description of the server's operating system

static string getOs ()
static method getServerAPIName (line 98)

Get the name of interface between PHP and the web server

static string getServerAPIName ()
static method getSystemName (line 88)

Get the name of the server computer

static string getSystemName ()
static method getTempDir (line 131)

Get the path to the server's temp dir

static string getTempDir ()
static method isGlobalsOn (line 68)

Check if register_globals is turned on

static bool isGlobalsOn ()
static method isPHP5 (line 58)

Check if running PHP version is greater or equal than 5.0.0

static bool isPHP5 ()
static method isWindows (line 48)

Check if server's operating system is MS Windows

static bool isWindows ()
static method loadExtension (line 159)

Tries to load a PHP extension if not loaded

This method used the http://www.php.net/dl function to load the extension library, when not loaded by default when PHP initializes.

static bool loadExtension (string $extensionName)
  • string $extensionName: Extension name
static method setIni (line 121)

Set the value of a PHP initialization variable

static bool setIni (string $key, mixed $value)
  • string $key: Variable name
  • mixed $value: Variable value

Inherited Methods

Inherited From PHP2Go

PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()

Documentation generated on Sun, 07 Oct 2007 19:30:02 -0300 by phpDocumentor 1.3.2