library/core/class.request.php
public function HostAndPort() {
      $Host = $this->Host();
      $Port = $this->Port();
      if (!in_array($Port, array(80, 443)))
         return $Host.':'.$Port;
      else
         return $Host;
   }
public function HostAndPort() {
      $Host = $this->Host();
      $Port = $this->Port();
      if (!in_array($Port, array(80, 443)))
         return $Host.':'.$Port;
      else
         return $Host;
   }
public function HostAndPort ( ) { $ Host = $ this -> Host ( ) ; $ Port = $ this -> Port ( ) ; if ( ! in_array ( $ Port , array ( 80 , 443 ) ) ) return $ Host . ':' . $ Port ; else return $ Host ; }
Return the host and port together if the port isn't standard.
@return string
@since 2.1
Return the host and port together if the port isn t standard .