you are right, but my site is getting a high traffic, so running such a script on my server may slower it. I think it's better to use an external provider for it.
I started to use
http://www.myonlineusers.com it seems to be good.
thank you for your reply,
regards..