src/Net/API/Dyn.php
public function getIp(){
		if( (int) $this->lastCheck > 0 && time() - $this->lastCheck < 10 * 60 )
			return $this->lastIp;
		$this->reader->setUrl( 'http://checkip.dyndns.org' );
		$html	= $this->reader->read();
		$parts	= explode( ": ", strip_tags( $html ) );
		$ip		= trim( array_pop( $parts ) );
		$this->save( array( 'ip' => $ip, 'timestamp' => time() ) );
		return $ip;
	}
public function getIp(){
		if( (int) $this->lastCheck > 0 && time() - $this->lastCheck < 10 * 60 )
			return $this->lastIp;
		$this->reader->setUrl( 'http://checkip.dyndns.org' );
		$html	= $this->reader->read();
		$parts	= explode( ": ", strip_tags( $html ) );
		$ip		= trim( array_pop( $parts ) );
		$this->save( array( 'ip' => $ip, 'timestamp' => time() ) );
		return $ip;
	}
public function getIp ( ) { if ( ( int ) $ this -> lastCheck > 0 && time ( ) - $ this -> lastCheck < 10 * 60 ) return $ this -> lastIp ; $ this -> reader -> setUrl ( 'http://checkip.dyndns.org' ) ; $ html = $ this -> reader -> read ( ) ; $ parts = explode ( ": " , strip_tags ( $ html ) ) ; $ ip = trim ( array_pop ( $ parts ) ) ; $ this -> save ( array ( 'ip' => $ ip , 'timestamp' => time ( ) ) ) ; return $ ip ; }
Returns external IP of this server identified by Dyn service.
@access		public
@return		string		IP address to be identified
Returns external IP of this server identified by Dyn service .