Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
php code for no. of pple online
Name: jasmine tan Date: March 11, 2006 at 07:36:23 Pacific OS: win xp CPU/Ram: pentium 4/512
Comment:
Hello, may I know if anyone know the PHP source code showing the number of people online? Many thanks.
Name: Michael J (by mjdamato) Date: March 11, 2006 at 09:27:24 Pacific
Reply:
Number of people online where? I'm assuming you mean for a particular site.
There is no deafult code for for such a thing. It would depend upon how you have built your site. If you are using a content management system, such as PHPNuke, there are many plug-ins that will work with those sites.
Basically you will need to track all user activity on your site and log it to a database. You will also need to determine the amount of time that should expire before a person is considered as not being on the site. There is no way to know whaen someone has left the site or has just not clicked a new link. Well, you could put some javascript on the page to "refresh" the connection, but that would be too invasive. Then you would just do a query of the tracking database to see who is considered online.
Summary: hi everyone, currently i am learning PHP, and try to write a php code to send e-mail (using function "mail"). The question is that do i need to install and setup a mail server into my computer first t...
Summary: Hello everyone! :-D OK, I bought a used book about Mac programming... it's called "Using the Macintosh Toolbox with C" and it dates back to the ice age... (aka, when only the Mac had a GUI ("rofl")).....
Summary: I've been meaning to get a little overview out there on web technologies...This is probably as good of a place to put it as any. Hoping I can just link to this thread when people are just getting int...