PDA

View Full Version : cookie counter


Lofty
10-05-2002, 09:31 PM
Sup ya'll

I'm in need of some help as you all know theres the "how many times you've viewed this page" script with cookies.

well i need to record those hits on either a database or txt file so for example i cna open it up and see that Joe has visited 12 times

or even better is there a script out there already that you could point out to me that does this already PS listing hits by IP is not sufficient. as dial up IP's vary.

Can anyone tell me the how to write those hits to a file? eg document.write

whammy
10-06-2002, 05:41 PM
You can't write stuff to the server with javascript - only to client-side cookies (which means you as the webmaster can't view them).

To do this, you'll need a server-side scripting language (such as PHP or ASP).

:)