application/Espo/Core/Utils/System.php
public function getServerType()
    {
        $serverSoft = $_SERVER['SERVER_SOFTWARE'];

        preg_match('/^(.*?)\//i', $serverSoft, $match);
        if (empty($match[1])) {
            preg_match('/^(.*)\/?/i', $serverSoft, $match);
        }
        $serverName = strtolower( trim($match[1]) );

        return $serverName;
    }
public function getServerType()
    {
        $serverSoft = $_SERVER['SERVER_SOFTWARE'];

        preg_match('/^(.*?)\//i', $serverSoft, $match);
        if (empty($match[1])) {
            preg_match('/^(.*)\/?/i', $serverSoft, $match);
        }
        $serverName = strtolower( trim($match[1]) );

        return $serverName;
    }
public function getServerType ( ) { $ serverSoft = $ _SERVER [ 'SERVER_SOFTWARE' ] ; preg_match ( '/^(.*?)\//i' , $ serverSoft , $ match ) ; if ( empty ( $ match [ 1 ] ) ) { preg_match ( '/^(.*)\/?/i' , $ serverSoft , $ match ) ; } $ serverName = strtolower ( trim ( $ match [ 1 ] ) ) ; return $ serverName ; }
Get web server name

@return string Ex. "microsoft-iis", "nginx", "apache"
Get web server name