function save($ip) {
$tail = time();
exec("wget -q "http://whois.nic.or.kr/whois/webapisvc?VALUE=$ip&LANG_TYPE=K" -O /tmp/whois." . $tail);
unset($output);
exec("cat /tmp/whois." . $tail, $output);
exec("rm -rf /tmp/whois." . $tail, $output);
....
$connect = mysql_connect($host_name,$user_name,$user_password);
mysql_select_db($db_name, $connect);
$area = ""; $owner = "";
for($i = 0; $i < count($output); $i++) {
$temp = explode("IP 주소 : ", $output[$i]);
if (count($temp) == 2) { $area = $temp[1]; break; }
}
옛날에 만드러떤 아이피 체크 플그림인뎅... 님이 원하시는게 이런건가여?