How to check if someone is online through php?
#10

I'm feeling glad about your attempts Luis.

Here's how I do it:
1. Server uses HTTP() to send post data to a PHP script
2. PHP script updates an array stored in cache and updates the APC entry
3. Various pages across the forum system call a specific function
4. The function loads the user list from APC and loops through it to see if the value of any entry's registration ID is the same as the one provided to the function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)