
-----------------------------------
Shaun Dreclin
Fri Jun 09, 2006 10:41 am

PHP Hit Counter
-----------------------------------
Yeah, I keep going around and seeing people say how simple it is! Then I look at the socalled tutorial, and it makes absolutely no sense -_-;

So anyways, how do I make a text counter that goes up by one every time sombody veiws the page?

From the beginning please, ive never used PHP before..

(Im building my site with frontpage)

-----------------------------------
JackTruong
Fri Jun 09, 2006 1:29 pm


-----------------------------------
You'll need to understand some basic SQL for a hit counter.

-----------------------------------
md
Fri Jun 09, 2006 10:18 pm


-----------------------------------
You don't need sql at all! It's simplest to use one but it's definitely not needed; a simple file will do. As for how exactly it's done I can think of a few ways but I don't really want to write the code for you.

-----------------------------------
wtd
Sat Jun 10, 2006 8:33 am


-----------------------------------
You don't need sql at all! It's simplest to use one but it's definitely not needed; a simple file will do.

Or a combination of the two: SQLite.  ;)

-----------------------------------
Shaun Dreclin
Sat Jun 10, 2006 2:27 pm


-----------------------------------
Blarg


Alright, I dont know what SQL or whatever you called it is.. So uhm, who wants to be nice and forward the dumbass (being me) to a tutorial of some sort?  :D

-----------------------------------
rdrake
Sat Jun 10, 2006 3:07 pm


-----------------------------------
The first hit for "SQL tutorial" on [url=http://www.google.com/]Google gave me [url=http://www.w3schools.com/sql/]this.  Also, a search on Google for PHP tutorial gave me [url=http://www.php.net/tut.php]this.

-----------------------------------
JSBN
Tue Jun 27, 2006 11:36 pm


-----------------------------------
if you dont care about unique Vs repeat users, just create a text file and everytime someone visits the site, get that number and increase it. then re-write the file.
