<?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;
# use xmlCache only for some tld's (here .at and .com, without dot)
$xWhois->__xmlCacheDomains = array("at","com");
# set cache time in seconds (here 1 hour)
$xWhois->__cachingTime = 3600;
# get Data
$xWhois->getData();
# returning Whois
echo nl2br($xWhois->Whois);
?>