News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPit.net:
Creating a "Who's Online" script with PHP
December 12, 2005 @ 15:00:05

New from PHPit.net today, there's this tutorial on the creation of a "who's online" script with PHP.

In this tutorial I will show you how to create your own "Who's Online" script, which is often found on message boards and other community scripts. We will first create a really simple script, and after that add a few more features like the location of each visitor. But first, let me explain how our "Who's Online" script is going to work.

The script stores an IP and a timestamp in the database, and will keep note of their last page request. After a bit, when they are no longer making requests, it will remove them from the list. The little trick behind it is a "web bug" - a small script that actually runs as a small PHP-created image...

0 comments voice your opinion now!
who\'s online script ip timestamp web bug who\'s online script ip timestamp web bug


blog comments powered by Disqus

Similar Posts

Vidyut Luther\'s Blog: Book Review - \"No Nonsense XML Web Development With PHP\"

DZone.com: File Path Injection in PHP <= 5.3.6 File Update (CVE 2011-2202)

ThinkPHP Blog: PHP and Scrum - the dreamteam in agile web development

SitePoint PHP Blog: Is Your PHP Application Affected by the Y2K38 Bug?

Rob Richards\' Blog: We Have A Winner


Community Events





Don't see your event here?
Let us know!


install list language interview threedevsandamaybe wordpress testing developer series configure community framework podcast unittest introduction laravel refactor opinion code release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework