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=\'$1$3\' target=\'_blank\'>$1$3</a>$4',$contents);
//make MAILTOs with e-mails
$contents=preg_replace('/([\w\-\.]+\@[\w\-\.]+)/','<a
href=\'mailto:$1\'>$1</a>',$contents);
//get a decent layout
$contents='<pre>'.$contents.'</pre>';
return $contents;
}
Thank you,
Chris Boothe
<http://www.favorware.com/> Business <http://www.favorware.com/>
Automation Solutions
Chris Boothe
FavorWare Corporation
141 Brunel Rd. Suite 100
<http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=141+Brunel+Rd.+Suite+100&csz
=Mississauga,+ON+L4Z+1X3&country=us>
Mississauga, ON L4Z 1X3
chris.boothe@favorware.com
http://www.favorware.com <http://www.favorware.com/>
tel:
fax: 905-507-2615
905-507-9753
<http://www.plaxo.com/signature/>
This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:49 EDT