hey people. i am asking if it is posible to check for the user status using php. i mean to know if the user if online or offline.
i am trying to build a chatting system that alow me to know who is online and who is offline.
Awah Mohamed -5 Junior Poster
Recommended Answers
Jump to Post— Member #120589websocket.org echo example does nothing for me. Says my browser supports it (chrome10 Win), but nothing happens on connect.
Jump to Post— 84hd0ns 0Hi
maybe you could try...
when the user logs in:
$user = "logged-in/$username"; $user = fopen($user, 'w') or die('ERROR'); fclose($page);on logout:
unlink($username);to list users:
$users = sort(glob('logged-in/*')); foreach ($users as $user) { print $user; print '<br />'; …
All 6 Replies
evanism 0 Newbie Poster
Awah Mohamed -5 Junior Poster
Member #120589
84hd0ns 0 Light Poster
chrishea 182 Nearly a Posting Virtuoso
84hd0ns 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.