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;
}
{
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);
$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="">
$contents=preg_replace('/([EMAIL PROTECTED])/','<a href="">
//get a decent
layout
$contents='<pre>'.$contents.'</pre>';
$contents='<pre>'.$contents.'</pre>';
return
$contents;
}
}
Thank
you,
Chris
Boothe
| ||||||||||||||
|
| ||||||||||||||
favorware_100x30.gif
Description: a/octet-stream
