Display Users Online Based On Page Viewing
(Page 1 of 4 )
In today's article Stan shows us how to count the number of users browsing a particular page on our site using PHP and MySQL.A lot of web sites these days like for users to know that there is a presence of community on their web site. The main focus is simply that "you are not alone". One way that a PHP developer attempts to do this is by using a script that tells the users how many people are currently online browsing that very same web site that they are.
In this article we will build a simple users online script that shows how many users are browing the same web page as you -– not the same web site as a whole. This way, visitor counts are more descriptive and you can see which pages are the most popular on your site. To test the code in this article you will need PHP v4.1 or above installed as well as MySQL 3.23 or above.
Next: Building The Script >>
More MySQL Articles
More By Stan Crawford