News Feed
Sections




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

Limitless Studios:
Determine Number Of Online Users Without A Database
June 22, 2006 @ 14:49:39

From the Limitless Studios website, there's a new tutorial for those frustrated by the other "who's online" tutorials that require a database. Their example doesn't, opting instead to handle the process with PHP's sessions.

Most web developers will usually like to determine the number of online users currently browsing their web site. Most tutorials will teach you how to do just that using a database of some sort because it is easy to implant. Using a database though can be a bit slow at times, especially if your web site gets a lot of hits. In this tutorial, we will teach you an alternative and effective way to determine the number of online users WITHOUT using a database.

They note the overhead that using a database can cause, and look instead to something PHP works with natively - sessions. Their code is contained inside of a function, checking the session path PHP uses for session files that haven't expired yet.

0 comments voice your opinion now!
tutorial users online function session path count tutorial users online function session path count


blog comments powered by Disqus

Similar Posts

Phil Sturgeon: Testing and Contributing with Composer Packages

FuzzyOpinions Blog: Tutorial: improving security with a PHP Captcha

SitePoint PHP Blog: How to Use PHP Namespaces, Part 1: The Basics

Klaus Graefensteiner's Blog: Getting Wordpress installed in a jiffy on Windows 7 using the WPI

Till's Blog: Nginx+PHP+FastCGI: Testing your web application with bleeding edge PHP


Community Events

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


introduction series podcast psr7 extension release development conference api voicesoftheelephpant opinion laravel framework video community laravel5 library unittest interview language

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