BulkRegister V1.1 UPDATE NOTE: BulkRegister.com has several antispam measures, which include grammatic algorithms for changing their Whois output every x request or every x seconds or so. This update includes new regexp's to extract the information. In addition, whois.bulkregister.com will only allow few whois request to be made from the same IP-address within a specific period of time. Exceeding requests will be bounced! I have tested it on dozens of domains, but as I'm a regexp newbie it *might* be buggy - bugreports are welcome! #################################################*/ require_once('whois.parser.php'); class bulkr_handler { function parse($data_str, $query) { $items = array( 'admin' => 'Administrative Contact', 'tech' => 'Technical Contact', 'billing' => 'Billing Contact', 'domain.name' => 'Domain name:', 'domain.nserver.' => 'Domain servers in listed order:', 'dummy' => 'Record update' ); $r = get_blocks($data_str, $items); if (isset($r['admin'])) $r['admin'] = get_contact($r['admin']); if (isset($r['admin'])) $r['tech'] = get_contact($r['tech']); if (isset($r['billing'])) $r['billing'] = get_contact($r['billing']); unset($r['dummy']); reset($data_str); while (list($key, $val) = each($data_str)) if (trim($val)=='') break; while (list($key, $val) = each($data_str)) if (trim($val)!='') break; $r['owner']['name'] = $val; while (list($key, $val) = each($data_str)) { if (trim($val)=='') break; $r['owner']['address'][] = $val; } format_dates($r, 'ymd'); return ($r); } } ?>