$counter = intval(file_get_contents("big5/counter.dat")); if(!isset($_COOKIE['visitor'])){ $counter++; $fp = fopen("big5/counter.dat", "w"); flock($fp, LOCK_EX); // do an exclusive lock fwrite($fp, $counter); flock($fp, LOCK_UN); // release the lock fclose($fp); setcookie("visitor", 1, time()+3600); } ?>
![]()
Victor FM | Victor Forum | Victor Family ![]()
© 2002-2007
品冠官方网站
@ www.victorfm.com |