src/Net/Connectivity.php
public function checkUsingSystemPing(){
		$response = NULL;
		@exec( "ping -c 1 google.com 2>&1 1> /dev/null", $response, $code );
//		@system( "ping -c 1 1111google.com &2>1 &1>/dev/null", $code );
		if( $code == 0 )
			$this->status = self::STATUS_ONLINE;
		else
			$this->status = self::STATUS_OFFLINE;
	}
public function checkUsingSystemPing(){
		$response = NULL;
		@exec( "ping -c 1 google.com 2>&1 1> /dev/null", $response, $code );
//		@system( "ping -c 1 1111google.com &2>1 &1>/dev/null", $code );
		if( $code == 0 )
			$this->status = self::STATUS_ONLINE;
		else
			$this->status = self::STATUS_OFFLINE;
	}
public function checkUsingSystemPing ( ) { $ response = NULL ; @ exec ( "ping -c 1 google.com 2>&1 1> /dev/null" , $ response , $ code ) ; //		@system( "ping -c 1 1111google.com &2>1 &1>/dev/null", $code ); if ( $ code == 0 ) $ this -> status = self :: STATUS_ONLINE ; else $ this -> status = self :: STATUS_OFFLINE ; }
Check connectivity using ping via system call.
Sets status depending on result.
@access		public
@return		void
Check connectivity using ping via system call . Sets status depending on result .