public function getServerSignature()
{
// try to load the OS identifier
list($os, ) = sscanf(strtolower(php_uname('s')), '%s %s');
// check if we've a file with the actual version number
if (file_exists($filename = $this->getConfDir('/.release-version'))) {
$version = file_get_contents($filename);
} else {
$version = 'dev-' . gethostname();
}
// prepare and return the server signature
return sprintf('appserver/%s (%s) PHP/%s', $version, $os, PHP_VERSION);
}