Hello,
 
We are using the openSRS.php implementation for a domain WHOIS lookup using the following function.
What do we need to do to lookup whois information for .CA domain names?
 
function get_domain_details($domain)
{
 
    $domain=trim($domain);
 
    if (!$domain)
    {
        print 'Invalid domain';
        exit;
    }
 
    $contents=`whois $domain`;
 
    //make links with URLS
    $contents=preg_replace('/((https?|ftp|news|gopher):\/\/[^\s]+)(\s+)/','<a href="" target=\'_blank\'>$1$3</a>$4',$contents);
 
    //make MAILTOs with e-mails
    $contents=preg_replace('/([EMAIL PROTECTED])/','<a href="">
 
    //get a decent layout
    $contents='<pre>'.$contents.'</pre>';
 
    return $contents;
}
 
Thank you,
 
Chris Boothe
 
Business Automation Solutions
Chris Boothe
FavorWare Corporation
141 Brunel Rd. Suite 100
Mississauga, ON L4Z 1X3
[EMAIL PROTECTED]
http://www.favorware.com
tel:
fax:
905-507-2615
905-507-9753
 

Attachment: favorware_100x30.gif
Description: a/octet-stream

Reply via email to