Posted by James Barrett on 10/04/07 11:39
-----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-----
Navigation:
[Reply to this message]
|