? PHPif ($ domain) {if ($ domain) {firstgetthedomainserverfrominternic $ fpfsockopen (rs.internic.net, 43, $ errno, $ errstr, 10); if (! $ Fp) {echo $ errstr ($ errno) n;} else {fputs ($ fp, $ domainrn); while (! Feof ($ fp) {$ buffgets ($ fp
If ($ domain)
{
If ($ domain)
{
// First get the domain server from internic
$ Fp = fsockopen ("rs.internic.net", 43, & $ errno, & $ errstr, 10 );
If (! $ Fp)
{
Echo "$ errstr ($ errno)
N ";
}
Else
{
Fputs ($ fp, "$ domainrn ");
While (! Feof ($ fp ))
{
$ Buf = fgets ($ fp, 128 );
If (ereg ("Whois Server:", $ buf ))
{
$ Server = str_replace ("Whois Server:", "", $ buf );
$ Server = trim ($ server );
}
}
Fclose ($ fp );
}
If ($ server)
{
Echo"
Unfortunately, $ domain is registered on $ server:
Below is the detailed registration information:
";
Echo"
";
$ Fp = fsockopen ($ server, 43, & $ errno, & $ errstr, 10 );
If (! $ Fp)
{
Echo "cocould not open connection to $ server on port 43.n ";
Echo "$ errstr ($ errno)
N ";
}
Else
{
Fputs ($ fp, "$ domainrn ");
While (! Feof ($ fp ))
{
Echo fgets ($ fp, 128 );
}
Fclose ($ fp );
}
}
Else {
Echo ("Congratulations! $ Domain at $ now (time)
The domain name has not been registered yet. the international domain name is decreasing every 5 seconds. please register at the Qilu hotline.
");
}
Echo ("
");
}
}
?>