Page 1 of 1
Help me please
Posted: Fri Dec 11, 2009 1:48 pm
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.
Re: Help me please
Posted: Sun Dec 13, 2009 3:23 pm
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.