|
|
|
//基本設定
$dat_file = "counter.dat";
$show_type = 1;
//主程式
$dat_file = "counter.txt";
$fp = fopen($dat_file,"r");
$counter = fgets($fp,6);
$counter = $counter +1;
fclose($fp);
echo $counter;
$fp = fopen($dat_file, "w");
$tmp = fputs($fp, $counter, strlen($counter) + 1);
fclose($fp);
?>
|
|
|