What is the best way to count page views in PHP/MySQL?

后端 未结 8 771
[愿得一人]
[愿得一人] 2020-12-07 09:47

And by best I mean most efficient, right now placing this on my post.php file is the only thing I can think of:

$query = mysql_query(\" UPDATE posts SET view         


        
8条回答
  •  再見小時候
    2020-12-07 10:28

    You can also check these lines of code. I think it will be helpful because you can achieve your goal with just a text file. It does not require any database activity.

提交回复
热议问题