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

Muhamad Bhaa Asfour picture Muhamad Bhaa Asfour · Jan 10, 2011 · Viewed 10.9k times · Source

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

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

Answer

Rion Williams picture Rion Williams · Jan 10, 2011

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.

Who Is Online Widget

Hope this helps you out.