Determine the base domain name for a URL. The primary use for this is to set the domain used for cookies to represent any subdomains.
The registrable domain is determined using the public suffix list. If the domain is not registrable, an empty string is returned. This empty string can be used in setcookie() as the domain, which restricts cookie to just the current host.
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Located at nclude/functions.php
||URL or hostname to process|
||the registrable domain or an empty string|