Forum Moderators: coopster

Message Too Old, No Replies

Php Hit Counters

I am having a problem regarding counters

         

ajay82

6:40 pm on Jan 13, 2004 (gmt 0)



I am tryin to create hit counters for several
web pages,
Instead of updating the mysql table in each page
I want to know whether there is anwyay
that I can execute a php script which
does the updating passing a suitable variable
without having to click on any link
on the pages where I want the counter.

I want the updating to occur in the background
without the person having to explicitly
click on a link to execute the counter script

jatar_k

2:50 am on Jan 14, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld ajay82,

you could use include [ca.php.net] and have the included script not have any output. You may have to pass some type of var or maybe use $_SERVER['PHP_SELF'] to identify the page doing the counting, if you are having it on many pages.

g1smd

11:41 pm on Jan 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There have been three or four threads in the last few weeks with example code for counters.

Scroll down the thread list in this forum to see them.