javascript 如何使用java脚本或php计算站点当前访问者

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4649926/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 14:25:37  来源:igfitidea点击:

how to count the site current visitors using java script or php

phpjavascriptvisitor-statisticvisitors

提问by Muhamad Bhaa Asfour

I need to get the current site visitors number using Javascript or PHP.

我需要使用 Javascript 或 PHP 获取当前站点的访问者数量。

I need it using the best way between php and Javascript.

我需要它使用 php 和 Javascript 之间的最佳方式。

回答by Rion Williams

The following link is a blog post regarding a widget that will allow you to use PHP, MySQL and JavaScript/jQuery. It might be able to point you in the right direction for what you need, and features a tutorial on implementing it.

以下链接是一篇关于允许您使用 PHP、MySQL 和 JavaScript/jQuery 的小部件的博客文章。它可能能够为您指明所需的正确方向,并提供有关实现它的教程。

Who Is Online Widget

谁是在线小工具

Hope this helps you out.

希望这可以帮助你。

回答by Steven Lyons

Here is another great tutorial that might help you out:

这是另一个很棒的教程,可以帮助您:

http://inobscuro.com/tutorials/simple-php-unique-visitors-counter-30/

http://inobscuro.com/tutorials/simple-php-unique-visitors-counter-30/

Good will coding...

善意的编码...