How about this.
If you assign each person a sessionid, you can track them. So, as long
as they are on the site, you id state is yes and your script will
return, x number of sessions currently in use.
wade
Nick Jones wrote:
>Hello list,
>
>I'm trying to figure out a good way to get the current count of users on a page like many popular bulletin board packages use. I've googled around quite a bit and consulted all my textbooks and manuals and come up with nothing.
>
>Basically, I have a page already created and working great with AJAX. It's just a plain HTML page and PHP works in the background serving up the XMLHTTPRequest content. I want to add another request that can hit a PHP script and find out how many users are currently on the HTML page. Then, using AJAX, I can hit the script every 30 seconds or so and get a real-time count of the number of users on the page currently.
>
>Has anyone done anything like this before or have any ideas on the best way to proceed? I do have MySQL installed that I can use if that would help this process along.
>
>Thanks
>-Nick
>
>
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
