$domain"; $targetSite = "http://whois.domaintools.com/".$domain; $WhoisButton = "
"; $freeCheck = file("http://www.checkdomain.com/cgi-bin/checkdomain.pl?domain=$domain"); // copy("http://www.checkdomain.com/cgi-bin/checkdomain.pl?domain=$domain", "xFile.x"); // $freeCheck = file("xFile.x"); $html = implode('', $freeCheck); $StartPos = strpos($html, "requested, ")+11; $EndPos = strpos($html, "by the organization"); if ($EndPos == $null) { $EndPos = strpos($html, "If you would"); }; $inputText = $WhoisButton . substr($html, $StartPos, $EndPos-$StartPos); if ($EndPos == $null) { $inputText = "Error: Invalid Domain
Please Search Again."; }; echo "

" . $inputText; } ?>