You are here: Re: PHP counter for free « PHP Programming Language « IT news, forums, messages
Re: PHP counter for free

Posted by klenwell on 10/05/07 18:47

On Oct 5, 11:29 am, shror <shahi...@gmail.com> wrote:
> On Oct 4, 1:39 pm, James Barrett <xuc...@comcast.net> wrote:
>
>
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
>
> > shror wrote:
> > > I want to create a counter for free to my users, so that anybody could
> > > generate a small piece of code and add it to his website and by this
> > > way they run their own counters for free
> > > is there a simple way or a ready made php script that could do this.
>
> > > If anybody could tell me how to do it or the steps will be really
> > > appreciated.
>
> > > shror
>
> > I wrote a counter in php that counts unique ip addresses. Probably more
> > complicated that you are looking for, but still only a few lines of
> > code. You need a way to maintain persistent data on the server. The most
> > popular way to do that with php is to use a MySQL table.
>
> > Good luck,
>
> > Jim
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
>
> > iD8DBQFHBNENQuDJiZ/QrH0RAmLjAJ9eNOvIcjq2VZx1CabNMe02smnP/ACfafYG
> > jENpBQoBQ0kfCqtkfe3dr4A=
> > =dn9k
> > -----END PGP SIGNATURE-----
>
> Thank you for your help and to be much more clearer in my question,
> what I want to do is that I want to provide anybody who have a website
> a small counter to use on his website that the source of the cunter is
> on my hosting area and just what the other websites have is a
> javascript that calls a small text file located on my area to add
> counts so that the users will be using a service offered for free by
> my website, like the freecounters offered by the websites to anybody,
> but what I want is just very simple way without registration or
> anything, just copy and paste a small piece of code.
>
> Thanks for your help in all ways.
>
> shror

I used a package called pphlogger for a while. It worked well enough
but as it's no longer actively maintained, I recommend it as a
reference more than a ready-to-roll solution:

http://pphlogger.phpee.com/download.php

I've been working on my own site metric. Development is being done
recreationally and it's still pre-alpha. But the basic parts have
been tested and it's the same concept you describe (using mysql on the
backend) so it, too, may be useful as a reference:

http://bafflegate.googlecode.com/svn/trunk/

If you want to offer it as a service to others, it's probably going to
have to be a little less simple than you'd hope -- especially if you
want to distinguish between visitors (sessions) and hits and the like.

But maybe somebody knows of a more reliable pre-existing solution.
Maybe search phpclasses.org.

Tom

 

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

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