Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 js 客户端代码,每次用户打开我的网址 xyz.com 时都会触发一些事件 x。我想在每次用户打开网址时增加计数
键值计数 1 并在再次命中时更新为 2。我怎样才能做到这一点?
将其放在脚本的最顶部:
<?php session_start(); $HIT=1; $total=$from_db_count+$HIT; //create function that generates the total hits from DB and return $from_db_count ?>