public function isSeleniumServerRunning()
    {
        $seleniumServerIsRunning = false;

        $errorLevel = 0;
        $errorMessage = '';
        $timeout = 1;
        $socket = @fsockopen(
            $this->getSeleniumHost(),
            $this->getSeleniumPort(),
            $errorLevel,
            $errorMessage,
            $timeout
        );

        if ($socket !== false) {
            $seleniumServerIsRunning = true;
            fclose($socket);
        }

        return $seleniumServerIsRunning;
    }
public function isSeleniumServerRunning()
    {
        $seleniumServerIsRunning = false;

        $errorLevel = 0;
        $errorMessage = '';
        $timeout = 1;
        $socket = @fsockopen(
            $this->getSeleniumHost(),
            $this->getSeleniumPort(),
            $errorLevel,
            $errorMessage,
            $timeout
        );

        if ($socket !== false) {
            $seleniumServerIsRunning = true;
            fclose($socket);
        }

        return $seleniumServerIsRunning;
    }
public function isSeleniumServerRunning ( ) { $ seleniumServerIsRunning = false ; $ errorLevel = 0 ; $ errorMessage = '' ; $ timeout = 1 ; $ socket = @ fsockopen ( $ this -> getSeleniumHost ( ) , $ this -> getSeleniumPort ( ) , $ errorLevel , $ errorMessage , $ timeout ) ; if ( $ socket !== false ) { $ seleniumServerIsRunning = true ; fclose ( $ socket ) ; } return $ seleniumServerIsRunning ; }
Tests if the Selenium RC server is running.

@return bool TRUE if the server is reachable by opening a socket, FALSE otherwise
Tests if the Selenium RC server is running .