Home arrow MySQL arrow Display Users Online Based On Page Viewing
MYSQL

Display Users Online Based On Page Viewing


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.

Author Info:
By: Stan Crawford
Rating: 5 stars5 stars5 stars5 stars5 stars / 10
September 18, 2002
TABLE OF CONTENTS:
  1. · Display Users Online Based On Page Viewing
  2. · Building The Script
  3. · The Code Explained (contd.)
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Display Users Online Based On Page Viewing
(Page 1 of 4 )

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.
blog comments powered by Disqus
MYSQL ARTICLES

- MySQL and BLOBs
- Two Lessons in ASP and MySQL
- Lord Of The Strings Part 2
- Lord Of The Strings Part 1
- Importing Data into MySQL with Navicat
- Building a Sustainable Web Site
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- PhpED 3.2 More Features Than You Can Poke ...
- Creating An Online Photo Album with PHP and ...
- Creating An Online Photo Album with PHP and ...
- Security and Sessions in PHP
- Setup Your Personal Reminder System Using PHP
- Create a IP-Country Database Using PERL and ...
- Developing a Dynamic Document Search in PHP ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials