public function isRunning() {
		if( !$this->pid ) {
			return false;
		}

		$result = shell_exec(sprintf('ps %d',
			$this->pid));
		if( count(preg_split("/\n/", $result)) > 2 ) {
			return true;
		}

		return false;
	}
public function isRunning() {
		if( !$this->pid ) {
			return false;
		}

		$result = shell_exec(sprintf('ps %d',
			$this->pid));
		if( count(preg_split("/\n/", $result)) > 2 ) {
			return true;
		}

		return false;
	}
public function isRunning ( ) { if ( ! $ this -> pid ) { return false ; } $ result = shell_exec ( sprintf ( 'ps %d' , $ this -> pid ) ) ; if ( count ( preg_split ( "/\n/" , $ result ) ) > 2 ) { return true ; } return false ; }
Is the Web Server currently running?

@return bool
Is the Web Server currently running?