开发者

page view count without file or DB in php and html

开发者 https://www.devze.com 2023-02-26 06:37 出处:网络
Hi开发者_JAVA技巧 Is it possible to show page view count without using file or database to store it?

Hi开发者_JAVA技巧

Is it possible to show page view count without using file or database to store it?

Thanks


If you're using APC (or some other opcode cache) you can store it in memory. APC Increment would be helpful http://ca.php.net/manual/en/function.apc-inc.php, there's similar features for memcached or other services.

Beyond that, it needs to go somewhere, on disk (in a file or a DB), or in memory. There's no built in persistant store with PHP itself (though many opcode caches provide it).

0

精彩评论

暂无评论...
验证码 换一张
取 消