Does anyone know how I would go about making a webconter for my website??
Thank you for any help.
Printable View
Does anyone know how I would go about making a webconter for my website??
Thank you for any help.
A counter can't be done just in HTML - you need to use a server-side language. However if you can't be bothered to do that there are loads of free counters on the web that you could use - just search on google.
I'm willing to use another language but I know my server doesn't support PHP or mySQL and I'm not sure bout ASP, I'm hoping to find out today wether it supports ASP tho.
if it supports ASP or Perl, you can just use a flat-file database to keep track of things.
How would I use a flat file database with ASP and bare in mind my server doesn't support mySQL :( I found a way to do it using a application variable but it said for it to work the server needs to restart for it to start then if the server gets restarted the counter resets.
A flat-file database would just be like a text file that you read and write to on the server.
Each time the page is loaded, you could just load the file, get the number, increment it, and write the new number back to the file.
Of course, that doesn't count daily unique users, but it's a start.
I just found out my server doesn't even support ASP so it looks like I might be looking for a new webhost first :(. It is a free host but I thort they'd have atleast supported something more than html, and its a £25 charge to change my domain away from them :mad:.
Thanx for the help you two :)