Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
HTML
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í
¹Ì¸£Ä«¿îÅÍ plus+
¼Ò½ººÐ·ù
ÅؽºÆ® ±â¹Ý
´Ù¿î·Îµå Ƚ¼ö
1971 ȸ
°£´Ü¼³¸í
°£´ÜÇÑ Åë°è¸¦ º¸¿©ÁÖ´Â Ä«¿îÅÍÀÔ´Ï´Ù.
¡ã ¹Ì¸£Ä«¿îÅÍ ¼³¸í
1. DB Å×À̺í 3°³¸¦ »ç¿ëÇÕ´Ï´Ù.
Çϳª´Â Ä«¿îÆ® Åë°è µ¥ÀÌŸ, ¶Ç Çϳª´Â ÀÏÁÖÀÏ°£ÀÇ Á¢¼Ó °æ·Î°¡ µé¾î°¡°í, ¸¶Áö¸·À¸·Î Çϳª´Â ´çÀÏ ¾ÆÀÌÇǸ¦ ÀúÀåÇÕ´Ï´Ù.
Á¢¼Ó°æ·Î°¡ °è¼Ó ½×ÀÌ´Â °ÍÀÌ ¾Æ´Ï¶ó ÃÖ±ÙÀÇ ÀÏÁÖÀÏ°£ÀÇ °æ·Î¸¸À» ÀúÀåÇÕ´Ï´Ù.
¾ÆÀÌÇÇ´Â ´çÀÏÀÇ °Í¸¸À» ÀúÀåÇÏ¸ç ´ÙÀ½ ³¯ÀÌ µÇ¸é ÀÌÀü ¾ÆÀÌÇÇ´Â ÀÚµ¿ »èÁ¦°¡ µÇ±¸¿ä ÀÌ´Â ÇÏ·ç´ç ÇϳªÀÇ ¾ÆÀÌÇÇ¿¡ ´ëÇÑ Á¤º¸¸¦ üũÇϱâ À§ÇØ »ç¿ëµÇ¾îÁý´Ï´Ù.
±×¸®°í ÇÏ·ç¿¡ ÇÑÁÙ(·¹ÄÚµå)¸¸À» Åë°è µ¥ÀÌŸ Å×ÀÌºí¿¡ ÀúÀåÇÏ¿© µðºñÀÇ ¿ë·®À» ÃÖ¼ÒÈ ½Ãŵ´Ï´Ù.
2. ÇöÀç Ãâ·ÂÇÏ´Â Åë°è´Â ´çÀÏ Á¢¼ÓÀÚ¼ö, ÇØ´ç ¿ùÀÇ Á¢¼ÓÀÚ¼ö, Àüü ½Ã°£´ç Á¢¼ÓÀÚ¼ö¸¦ º¸¿©ÁÝ´Ï´Ù.
µðºñ¿¡ µû·Î Äõ¸®¸¦ ÁÖ¾î¼ ¿À´Ã,¾îÁ¦,Àüü,ÃÖ°í,ÃÖÀú¸¦ µû·Î »Ì¾Æ³¾¼öµµ ÀÖ±¸¿ä ^^
3. Á¢¼Ó °æ·Î ºÎºÐ¿¡¼ ÆĶõ»öÀ¸·Î Ãâ·ÂµÇ´Â ºÎºÐÀÌ Àִµ¥ ±×°Ç ÃÖÁ¾ Á¢¼ÓÀÚÀÇ °æ·ÎÀÓÀ» ³ªÅ¸³À´Ï´Ù.
¡ã ¼³Ä¡ ¹æ¹ý
¼³Ä¡È¯°æ .. PHP + MySQL
¾ÐÃà ÆÄÀÏÀ» ´Ù¿î¹Þ¾Æ¼ mirrh_counter ¶ó´Â Æú´õ¿¡´Ù ¾ÐÃàÀ» DZ´Ï´Ù. Æú´õ¸íÀ» ´Ù¸¥ °É·ç ¹Ù²Ù½Ç °æ¿ì¿¡´Â counter.php ÆÄÀÏ¿¡¼ 3¹ø° ÁÙÀÇ include "mirrh_counter/dbconn.php"; ºÎºÐÀ» ¼öÁ¤ÇØ ÁÖ¼¼¿ä.
mirrh_counter Æú´õÀÇ Æ۹̼ÇÀ» 707·Î º¯°æÇØÁÝ´Ï´Ù.
ÀÌ´Â µðºñ Á¢¼Ó ÆÄÀÏÀÎ dbconn.php ÆÄÀÏ »ý¼ºÀ» À§ÇÑ ÀýÂ÷ÀÔ´Ï´Ù.
install.php ÆÄÀÏÀ» À¥»ó¿¡¼ ½ÇÇà½ÃÅ°°í È£½ºÆ®¸í,µðºñ¾ÆÀ̵ð,µðºñ³×ÀÓ,µðºñºñ¹øÀ» ÀÔ·ÂÇÕ´Ï´Ù.
¾Æ¹« ¿¡·¯¾øÀÌ Install Completed !! ¶ó´Â ¸Þ¼¼Áö°¡ ¶ß¸é µðºñ°¡ Á¦´ë·Î ¸¸µé¾îÁø °ÍÀÔ´Ï´Ù.
¡ã »ç¿ëÇϱâ
ÀÚ½ÅÀÇ À妽º ÆäÀÌÁö »ó´Ü¿¡ ´ÙÀ½ÀÇ Äڵ带 Ãß°¡ÇÕ´Ï´Ù.
include "mirrh_counter/counter.php" ?>
Ä«¿îÆ® Åë°è¸¦ º¸½Ã·Á¸é http://ȨÇÇÁÖ¼Ò/mirrh_counter/view.php ¸¦ ½ÇÇà½ÃÅ°¸é µË´Ï´Ù.
ÀÚ½ÅÀÌ ¿øÇÏ´Â ÆäÀÌÁö¿¡ °£´ÜÇÑ Ä«¿îÅÍ ¼öÄ¡¸¦ »Ñ·ÁÁֽǷÁ¸é ¾Æ·¡¿Í °°ÀÌ Çϼ¼¿ä ^^
1. ÇØ´ç ÆäÀÌÁö »ó´Ü¿¡ ¾Æ·¡ÀÇ Äڵ带 »ðÀÔÇÕ´Ï´Ù.
include "mirrh_counter/dbconn.php";
$mc_today = mktime(0,0,0,date("m"),date("d"),date("Y"));
$mc_yesterday = mktime(0,0,0,date("m"),date("d"),date("Y"))-60*60*24;
$mc_total = mysql_fetch_array(mysql_query("select hit_unique from mcnt_main where day=``0``"));
$mc_today = mysql_fetch_array(mysql_query("select hit_unique from mcnt_main where day=``$mc_today``"));
$mc_yesterday = mysql_fetch_array(mysql_query("select hit_unique from mcnt_main where day=``$mc_yesterday``"));
$mc_max = mysql_fetch_array(mysql_query("select max(hit_unique) from mcnt_main where day!=``0``"));
$mc_min = mysql_fetch_array(mysql_query("select min(hit_unique) from mcnt_main"));
?>
2. Ãâ·ÂÇÒ ºÎºÐ¿¡ ´ÙÀ½ÀÇ Äڵ带 »ðÀÔÇÕ´Ï´Ù.
Àüü =$mc_total[0]?>
¿À´Ã =$mc_today[0]?>
¾îÁ¦ =$mc_yesterday[0]?>
ÃÖ°í =$mc_max[0]?>
ÃÖÀú =$mc_min[0]?>
³×ƼÁð ÀÇ°ß ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
À̸§
³»¿ë
Æò°¡Çϱâ
µµ¹è¹æÁöÅ°