original_string: protected function serverHostname()
      {
          $result = 'localhost.localdomain';
          if (!empty($this->Hostname)) {
              $result = $this->Hostname;
          } elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
              $result = $_SERVER['SERVER_NAME'];
          } elseif (function_exists('gethostname') && gethostname() !== false) {
              $result = gethostname();
          } elseif (php_uname('n') !== false) {
              $result = php_uname('n');
          }
          return $result;
      }
code: protected function serverHostname()
      {
          $result = 'localhost.localdomain';
          if (!empty($this->Hostname)) {
              $result = $this->Hostname;
          } elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
              $result = $_SERVER['SERVER_NAME'];
          } elseif (function_exists('gethostname') && gethostname() !== false) {
              $result = gethostname();
          } elseif (php_uname('n') !== false) {
              $result = php_uname('n');
          }
          return $result;
      }
code_tokens: protected function serverHostname ( ) { $ result = 'localhost.localdomain' ; if ( ! empty ( $ this -> Hostname ) ) { $ result = $ this -> Hostname ; } elseif ( isset ( $ _SERVER ) and array_key_exists ( 'SERVER_NAME' , $ _SERVER ) and ! empty ( $ _SERVER [ 'SERVER_NAME' ] ) ) { $ result = $ _SERVER [ 'SERVER_NAME' ] ; } elseif ( function_exists ( 'gethostname' ) && gethostname ( ) !== false ) { $ result = gethostname ( ) ; } elseif ( php_uname ( 'n' ) !== false ) { $ result = php_uname ( 'n' ) ; } return $ result ; }
docstring: Get the server hostname.
  Returns 'localhost.localdomain' if unknown.
  @access protected
  @return string
docstring_tokens: Get the server hostname . Returns localhost . localdomain if unknown .