954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP Server-Side Hit Counter for Beginner

Hi!!,
I don't know PHP , but I want a piece of code which I can use in my website to keep track of the no. of visitors (aka HIT COUNTER). Please mention how to apply it in my html pages .

Sukuz
Newbie Poster
5 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

you cannot do this in HTML, it will only work in PHP...
I would start by creating a table somewhere in a database and setting a field in that table to 0. Once this is done add the code to increment the value of that field by 1....

do you have access to PHP or a MySQL database?

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

Thanks paradox814,
But is there any way to implement it without PHP or any database, because I want it for my free website which doesn.t provides access to PHP, SQL, etc...

Sukuz
Newbie Poster
5 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

get a free counter from
http://extreme-dm.com/tracking/
or
http://www.nedstatbasic.net/

but otherwise this is a php forum so those would be the only ways i know of here

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You