Welcome
Welcome to <strong>txtSQL</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

[Script] Online Users

General chit chatter can go in here

[Script] Online Users

Postby whateverandever on Tue Dec 11, 2007 3:05 pm

I wasn't sure where to put this. Basically, I wrote an 'online users' class that I was going to turn into a tutorial ages ago, but I've decided to share it with the txtSQL community.

To use the script all you have to do is include it in your own PHP page and initialise the class. Then, wherever you want the number of online users to show, you call the display_count() function.

Code: Select all
include('online_users.php');
$online_users = new online_users();

// Display the count.
echo $online_users->display_count();


Or you can assign the count to a variable use to later on in your page, like so:
Code: Select all
$users_online_count = $online_users->display_count();


I've also included a function so that you can install the table that logs the info. Simply call the function:
Code: Select all
$online_users->install();

Then visit the page once (in your browser), although it doesn't matter if you visit more than once as txtSQL will give a warning after the table is created.

There are some configuration values at the top of the script that you will probably want to change, so it's worth having a look at them first.
There is no license. You can do whatever you like with it.

I think that's it. Here are the download links:
Mirror 1 (files-upload.com)
Mirror 2 (mediafire.com)

Enjoy!
User avatar
whateverandever
 
Posts: 10
Joined: Wed Jun 06, 2007 5:37 am

Re: [Script] Online Users

Postby zzw08 on Tue Jul 14, 2009 5:41 am

http://www.fashion-products.com [url=http://www.fashion-products.com ]is a sell air force one,
air jordan,bape,kicks,nike,Jerseys,Shoes,Clothing,Bag,Glasses,Caps&Hats,sneakers,sunglasses,
watches,Jewelry,Electronics,NBA,NFL,NHL,MLB[/url]
shoes
clothing
Handbags Wallets
Hat
Sunglasses
Belts
Watches
Jewelry
zzw08
 
Posts: 53
Joined: Tue Jul 14, 2009 5:15 am


Return to Chit Chat

Who is online

Users browsing this forum: No registered users and 0 guests

cron