FILE ... TOC

Return the host of a page

Calculate the host of a page. This method is used in cookie handling. This method uses the URL of a page and extracts the host from it. If this value is numeric (like 193.68.44.152) it tries to see if this host is already known by its name (calls the method normalize_url).

As a side effect this method also calculates the path value of a page.

Usage:

              $page->host;

FILE ... TOC