registered-domain-libs icon indicating copy to clipboard operation
registered-domain-libs copied to clipboard

PHP version doesn't work, or am I missing anything?

Open bago opened this issue 9 years ago • 3 comments

require_once("registered-domain-libs/effectiveTLDs.inc.php"); require_once("registered-domain-libs/regDomain.inc.php");

getRegisteredDomain('subdomain.domain.co.uk'); // this print "co.uk" getRegisteredDomain('subdomain.domain.co.uk', $tldTree); // this print "co.uk"

bago avatar Jun 25 '15 08:06 bago

I fixed this by adding this line:

        /* load tld tree into object */
        function __construct() {
                /* include tld tree data */
                include(dirname(__FILE__) . '/effectiveTLDs.inc.php');
+                $this->tldTree = $tldTree;
        }

bago avatar Jun 25 '15 08:06 bago

Works for me too

jakubsuchy avatar Mar 03 '16 18:03 jakubsuchy

Should be closed as it already fixed by commit bd9b7dee7d7f4e61bdaac1980fc9ad17f7478155

giosh94mhz avatar Jul 14 '17 08:07 giosh94mhz