Help me please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gawrrell
Forum Newbie
Posts: 1
Joined: Fri Dec 11, 2009 1:03 pm

Help me please

Post by gawrrell »

I'm creating a site and I want to view the users online without a database of users. I've tired something like $users = array($ip, $time), where $ip = user ip adress and $time = time(); but no good result. Please help me. I'm from Romania .....I'm sorry for my bad english.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Help me please

Post by Darhazer »

In order to view users online, you need some data, which is persistent between different php scripts / different loads of the script. It can be database or simple file. So you should write you array somewhere (file, database), and you have to load it from there and add the new user.

Hope this helps.
Post Reply