Location: PHPKode > projects > PHP-xWhois > php-xwhois/examples/getwhois_strip.php
<?php
# including whois.php
include("../whois.php");

# create new class with domainname
$xWhois = new xWhois("google.at");
# setting up variables
# i want to get Whois data
$xWhois->__whois = true;
# cut strings that are longer than...
$xWhois->__maxstrlength = 50;
# only show the first ... lines of whois
$xWhois->__maxstrlines = 20;
# get Data
$xWhois->getData();

# returning Whois
echo nl2br($xWhois->Whois);
?>
Return current item: PHP-xWhois