views:

146

answers:

3

Hello there ! What's the best way of getting all ip's that are curently viewing my web page and show them like a list (on another page) and update when a client is leaving or entering on my page ? And this using html ,php, javascrip , mysql , and stuff like this.

+2  A: 

PHP:

If register_global is off, $_SERVER['REMOTE_ADDR'];

Babiker
+2  A: 

In PHP, you can access the IP of the current viewer of a page in this variable:

$_SERVER['REMOTE_ADDR'];

I'll point out that this website is about helping people solve their problems, not recruiting others to do your work for you.

kobrien
A: 

Pretty sure there is a free service somewhere for this. I have seen it on a dozen blogs. So maybe you can save yourself some time from programming.

blacklotus
...and save yourself a good exercise too
Col. Shrapnel