//------------------- Ä«¿îÅÍ °ª Àоî¿À´Â ºÎºÐ ----------------------------------------------------------------------
$date = 60 * 60 * 24 * 100; mysql_query("delete from counter_ip where (".time()." - date) >= ".$date) or error(mysql_error()); mysql_query("delete from counter_referer where (".time()." - date) >= ".$date) or error(mysql_error());
---------------
Á¦·ÎÄ«¿îÆ®¼³Ä¡ÈÄ ±×³É ¹æÄ¡Çϸé, ȨÇǼӵµ°¡ ¶³¾îÁö°í ȨÀÌ Á×À»¼öµµ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº ´ë·®ÀÇ µ¥ÀÌÅ͸¦ insert°³³äÀ¸·Î ÀÔ·ÂÇϱ⶧¹®¿¡ 1³âÁ¤µµ¸¸ Áö³ª¸é, ¾öû³µ¥ÀÌÅÍ·®ÀÌ ¹ß»ýÇϱ⠶§¹®ÀÔ´Ï´Ù.
ÀÌ·¸°Ô Çؼ Á¦·ÎÄ«¿îÆ®¸¦ »ç¿ëÇÏÁö ¸øÇÏ´Â °æ¿ì°¡ ¸¹½À´Ï´Ù.
Á¦·ÎÄ«¿îÆ® zerocounter.php3 ¿¡ º¸¸é À§ Äڵ尡 ÀÖ½À´Ï´Ù. »ó´Ü¿¡ ÀÌ ¼¼ÁÙÀ» ÀÔ·ÂÇϽøé, 100ÀÏ°£¸¸ º¸°üµË´Ï´Ù. ¹Ð¾î³»±â½ÄÀÔ´Ï´Ù. Áï, ÃÖ±Ù 100ÀÏ°£¸¸ ±â·ÏÇÏ¸ç ¸ÅÀÏ ÇÏ·çºÐÀ» ³¯·Á¹ö¸³´Ï´Ù. | |