Re: [PHP] Whos online at the moment in PHP

2002-06-24 Thread Erik Price
On Sunday, June 23, 2002, at 09:53 AM, Pag wrote: Is it possible to code in PHP a small indicator on a site saying how many people are viewing that page at the moment? Sorry if its a silly question, but i am a newbie at PHP. If it is, could you point me in the good direction?

RE: [PHP] Whos online at the moment in PHP

2002-06-24 Thread James E. Hicks III
Why not; 1. Record each visitors IP that connects and the connect time. 2. Delete from this table all records that are 5 mins old. 3. Count the remaining records as people currently viewing page. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Whos online at the moment in PHP

2002-06-23 Thread Justin French
Well, traditionally this would be done with sessions, and it's not exactly the easiest topic for a newbie to get their head around. It also never going to be a science -- how do you know when a user closes their browser window or click onto another page? You need to have clean-out routines for

Re: [PHP] Whos online at the moment in PHP

2002-06-23 Thread Chris Shiflett
Most questions like this depend more on your ability to think creatively than your experience with PHP, so don't let inexperience discourage you from exploring on your own. First, decide what you consider to be online exactly. If I, for example, requested a page 30 seconds ago, you would

Re: [PHP] Whos online at the moment in PHP

2002-06-23 Thread Uros Gruber
Hi, I've ma some atuh system to do such thing beside other special functions, u have to store some session ids in some db and then refresh timestamp for those session wich is still active other delete after 30min or some other time. -- bye, Urosmailto:[EMAIL