- Äɲ䵤줿¹Ô¤Ï¤³¤Î¿§¤Ç¤¹¡£
- ºï½ü¤µ¤ì¤¿¹Ô¤Ï¤³¤Î¿§¤Ç¤¹¡£
**Ìܼ¡ [#u6dada6e]
#contents
** ¥«¥¦¥ó¥¿¥×¥í¥°¥é¥à¤òºîÀ®¤¹¤ë [#jd21881d]
|¥«¥Æ¥´¥ê¡¼|¥«¥¦¥ó¥¿¥×¥í¥°¥é¥à|
|Í¥Àè½ç°Ì|A|
|¥¤¥Æ¥ì¡¼¥·¥ç¥ó|[[¥¤¥Æ¥ì¡¼¥·¥ç¥ó1]]|
|¾õÂÖ|¥ê¥ê¡¼¥¹|
|´°Î»Í½ÄêÆü|2006/11/01|
|¹©¿ô|0.2|
|Âбþ¼Ô|¾®¾Â|
----
**¥½¡¼¥¹ [#n189d04e]
<?php
$file = fopen('./counter.txt', 'r+');
flock($file, LOCK_EX);
$count = (int)fgets($file);
$count++;
print "Ž±Ž¸Ž¾Ž½²ó¿ô = $count";
rewind($file);
fputs($file, $count);
?>
ÊÌÅÓ¡¢Æ±³¬ÁؤËcounter.txt¤È¤¤¤¦Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤òÍÑ°Õ¤·¡¢1¤Èµ½Ò¤·¤Æ¤ª¤¤Þ¤¹¡£
**´ØÏ¢¥¨¥ó¥È¥ê [#s94d8453]
#ls2(¥¢¡¼¥¯¥¦¥§¥Ö ¥×¥í¥¸¥§¥¯¥È´ÉÍýÊýË¡¤´¾Ò²ð)