$fd = fopen("count.dat","r+"); $count = fgets($fd,1000); if (! $count) $count=0; rewind($fd); $count++; fwrite ($fd, $count); fclose ($fd); ?>
© janach.com