// Print or do what you want with the information. // echo '<pre>'; var_dump($whois->info()); echo '</pre>'; } catch (Exception $e) { echo $e->getMessage(); } /* * --------------------------------------------------- * Method 3 * --------------------------------------------------- */ try { // Instantiate DomainTools // $dt = new DomainTools(); // Execute the whois. // $whois = $dt->whois($domain); // Get the domain whois information. // $info = $whois->info(); // Print or do what you want with the information. // echo '<pre>'; var_dump($info); echo '</pre>'; } catch (Exception $e) { echo $e->getMessage(); }
// Print or do what you want with the information. // echo '<pre>'; var_dump($tlds); echo '</pre>'; } catch (Exception $e) { echo $e->getMessage(); } /* * --------------------------------------------------- * Method 3 * --------------------------------------------------- */ try { // Instantiate DomainTools // $dt = new DomainTools(); // Instantiate the servers library. // $servers = $dt->servers(); // Get the common tlds. // $tlds = $servers->tlds('common'); // Print or do what you want with the information. // echo '<pre>'; var_dump($tlds); echo '</pre>'; } catch (Exception $e) { echo $e->getMessage(); }