Computer Science Canada PHP Hit Counter |
Author: | Shaun Dreclin [ Fri Jun 09, 2006 10:41 am ] |
Post subject: | 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) |
Author: | JackTruong [ Fri Jun 09, 2006 1:29 pm ] |
Post subject: | |
You'll need to understand some basic SQL for a hit counter. |
Author: | md [ Fri Jun 09, 2006 10:18 pm ] |
Post subject: | |
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. |
Author: | wtd [ Sat Jun 10, 2006 8:33 am ] |
Post subject: | |
Cornflake wrote: 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. |
Author: | Shaun Dreclin [ Sat Jun 10, 2006 2:27 pm ] |
Post subject: | |
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? |
Author: | rdrake [ Sat Jun 10, 2006 3:07 pm ] |
Post subject: | |
The first hit for "SQL tutorial" on Google gave me this. Also, a search on Google for PHP tutorial gave me this. |
Author: | JSBN [ Tue Jun 27, 2006 11:36 pm ] |
Post subject: | |
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. |