private function get_server_info() {
		$out = '<table>';

		// Validate if the server address is a valid IP-address.
		if ( $ipaddress = filter_input( INPUT_SERVER , 'SERVER_ADDR', FILTER_VALIDATE_IP ) ) {
			$out .= '<tr><td>IP</td><td>' . $ipaddress . '</td></tr>';
			$out .= '<tr><td>Hostname</td><td>' . gethostbyaddr( $ipaddress ) . '</td></tr>';
		}

		if ( function_exists( 'php_uname' ) ) {
			$out .= '<tr><td>OS</td><td>' . php_uname( 's r' ) . '</td></tr>';
		}

		$out .= '<tr><td>PHP</td><td>' . PHP_VERSION . '</td></tr>';
		$out .= '<tr><td>CURL</td><td>' . $this->get_curl_info() . '</td></tr>';
		$out .= '</table>';

		return $out;
	}
private function get_server_info() {
		$out = '<table>';

		// Validate if the server address is a valid IP-address.
		if ( $ipaddress = filter_input( INPUT_SERVER , 'SERVER_ADDR', FILTER_VALIDATE_IP ) ) {
			$out .= '<tr><td>IP</td><td>' . $ipaddress . '</td></tr>';
			$out .= '<tr><td>Hostname</td><td>' . gethostbyaddr( $ipaddress ) . '</td></tr>';
		}

		if ( function_exists( 'php_uname' ) ) {
			$out .= '<tr><td>OS</td><td>' . php_uname( 's r' ) . '</td></tr>';
		}

		$out .= '<tr><td>PHP</td><td>' . PHP_VERSION . '</td></tr>';
		$out .= '<tr><td>CURL</td><td>' . $this->get_curl_info() . '</td></tr>';
		$out .= '</table>';

		return $out;
	}
private function get_server_info ( ) { $ out = '<table>' ; // Validate if the server address is a valid IP-address. if ( $ ipaddress = filter_input ( INPUT_SERVER , 'SERVER_ADDR' , FILTER_VALIDATE_IP ) ) { $ out .= '<tr><td>IP</td><td>' . $ ipaddress . '</td></tr>' ; $ out .= '<tr><td>Hostname</td><td>' . gethostbyaddr ( $ ipaddress ) . '</td></tr>' ; } if ( function_exists ( 'php_uname' ) ) { $ out .= '<tr><td>OS</td><td>' . php_uname ( 's r' ) . '</td></tr>' ; } $ out .= '<tr><td>PHP</td><td>' . PHP_VERSION . '</td></tr>' ; $ out .= '<tr><td>CURL</td><td>' . $ this -> get_curl_info ( ) . '</td></tr>' ; $ out .= '</table>' ; return $ out ; }
Returns basic info about the server software

@return string
Returns basic info about the server software