egrep('/[a-zA-Z0-9]+/', $_SERVER['SERVER_SOFTWARE']); if (!$name) { loadClass('Logger')->error('Could not get Httpd name'); return $default; } return $name; } public function getVersion() { $version = $this->egrep('/[.0-9]+/', $_SERVER['SERVER_SOFTWARE']); if (!$version) { loadClass('Logger')->error('Could not get Httpd version'); return ''; } return $version; } }