<HEAD>
<TITLE> PHP Ä«¿îÅÍ </TITLE>
<?php
$CountFile = "counter.txt";
$CountValue = 0;
$CountString = "";
function ReadCountFile()
{
global $CountFile, $CountValue;
if (file_exists($CountFile)) {
$fp = fopen($CountFile, 'r');
$buf = fread($fp, filesize($CountFile));
fclose($fp);
$CountValue = intval($buf);
}
}
function WriteCountFile()
{
global $CountFile, $CountValue;
$fp = fopen($CountFile, 'w');
fwrite($fp, $CountValue);
fclose($fp);
}
function MakeCount($value)
{
$count_string="";
$digit[0] = "0.gif";
$digit[1] = "1.gif";
$digit[2] = "2.gif";
$digit[3] = "3.gif";
$digit[4] = "4.gif";
$digit[5] = "5.gif";
$digit[6] = "6.gif";
$digit[7] = "7.gif";
$digit[8] = "8.gif";
$digit[9] = "9.gif";
for ($i = 0; $i <= 7; $i++)
{
$count_string = "<IMG SRC=" .$digit[$value % 10]. ">".$count_string;
$value = $value / 10 ;
}
return $count_string;
}
function DisplayCount()
{
global $CountString, $CountValue;
ReadCountFile();
$CountValue = $CountValue + 1;
WriteCountFile();
$CountString = MakeCount($CountValue);
echo $CountString;
}
?>
</HEAD>
<BODY>
´ç½ÅÀº <?php DisplayCount(); ?> ¹ø° ¹æ¹®ÇÑ ¼Õ´ÔÀÔ´Ï´Ù.<P>
</BODY>
</HTML>
ÀÌ°Ô ¼Ò½º ³»¿ëÀε¥ ¿©±â¼ ±×¸² ÆÄÀÏ ´ÙÀÖ°í ¼Ò½º´Â Àß µ¹¾Æ°¡´Â°Å °°Àºµ¥
±×¸²ÆÄÀÏÀÌ ¿¢¹Úó·³ ¶å´Ï´Ù;;
ssh ftp·Î Çб³ ¼¹ö¿¡ ¾÷·ÎµåÇؼ À¥¼¹ö ȨÆäÀÌÁö¿¡ ¿Ã¸®´Â°Çµ¥
ssh ftp public_html Æú´õ¾È¿¡ ±×¸²ÆÄÀÏÀº ´ÙÀÖ±¸¿ä (0~9.gif ´ÙÀÖÀ½)
´çÃé ±×¸²ÀÌ ¿Ö ¾È¶ß´ÂÁö ¸ð¸£°Ú³×¿©..
ÀÎÄÚµù¹æ½ÄÀº utf-8 ¹æ½ÄÀÔ´Ï´Ù
±×¸² ¾î¶»°ÔÇØ¾ß ¶ã±î¿ä.. ±×¸²À¸·Î µð½ºÇ÷¹ÀÌÇؼ Ä«¿îÅÍ ¿Ã¸®´Â ¹æ½ÄÀε¥ ¤Ð¤Ð
¾Æ Âü°í·Î apm-setup ¾È¿¡ htdocs ¿¡µµ ¿øº» ÆÄÀÏÀÌ ÀúÀåµÇÀִµ¥
loaclhost ¿¡¼ µ¹·Áº¸¸é ÀߵǴµ¥ À¥¼¹ö¿¡ ¿Ã¸®¸é ÀúÁö¶ö ³ª¼
µµ¿ÍÁÖ¼¼¿©!
S/W | 1657¸íÀÌ Àоú¾î¿ä. 18.222.200.143