$str= "Hello PHP!"; $day = getdate(); print("$str $day[mon]月$day[mday]日<BR>";
<?php if (($file = @fopen("count", "r+"))) { $count = fgets($file, 64); $count++; rewind($file); flock($file, LOCK_EX); fputs($file, $count); fclose($file); echo $count; } ?>