|
|
|
22년 전
|
조회 472
|
|
|
|
22년 전
|
조회 798
|
|
|
|
22년 전
|
조회 588
|
|
|
|
22년 전
|
조회 652
|
|
|
|
22년 전
|
조회 491
|
|
|
|
22년 전
|
조회 538
|
|
|
|
22년 전
|
조회 422
|
|
|
|
22년 전
|
조회 519
|
|
|
|
22년 전
|
조회 496
|
|
|
|
22년 전
|
조회 401
|
|
|
|
22년 전
|
조회 477
|
|
|
|
22년 전
|
조회 383
|
|
|
|
22년 전
|
조회 445
|
|
|
|
22년 전
|
조회 430
|
|
|
|
22년 전
|
조회 556
|
|
|
|
22년 전
|
조회 556
|
|
|
|
22년 전
|
조회 683
|
|
|
|
22년 전
|
조회 513
|
|
|
|
22년 전
|
조회 513
|
|
|
|
22년 전
|
조회 547
|
댓글 1개
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "NONE");
include "./$cfg[bbs_dir]/admin/admin.lib.php";
$sql = " delete from $cfg[table_zip] ";
sql_query($sql);
// 우편번호 INSERT
$file = fopen("./install/sql_zip.sql", "r");
$i = 0;
while (!feof($file)) {
$line = fgetss($file, 1024);
if (trim($line) == "") continue;
$line = str_replace(";", "", $line);
$line = preg_replace("/_TABLE_ZIP_/", $cfg[table_zip], $line);
sql_query($line);
$i++;
if ($i % 5000 == 0) {
$numi = number_format($i);
echo "<font size=2>현재 {$numi}건 INSERT 하는 중 ...</font><br>";
flush();
}
}
$sql = " select count(*) from $cfg[table_zip] ";
$row = sql_fetch($sql);
echo "<p><font size=2>우편번호 자료 총 " . number_format($row[0]) . "건 생성 완료</font>";
?>
별다를건 없을것 같은데요...