You are here: Re: Count visitors on my website « PHP Programming Language « IT news, forums, messages
Re: Count visitors on my website

Posted by Hadron on 07/15/07 00:21

Michael Fesser <netizen@gmx.de> writes:

> .oO(Ciaran)
>
>>Hi I've seen this a few places - The site lists off the number of
>>people (not logged in) currently browsing the site. How can I do this
>>with php / mySQL please?
>
> You can use rand().
>
> Such "statistics" are never accurate. HTTP is a stateless protocol,
> there's no such thing like a "currently online user". A user comes,
> sends a request, gets a response and is gone. Next request, next user.
>
> Micha

So you clearly have no clue.

PHP maintains sessions and the user can be logged for that duration and
therefore only counted once.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация