Jump to content
xisto Community
Sign in to follow this  
HTML_Guru

I Need A "how-to" On Counters! Anyone have any ideas?

Recommended Posts

I believe this belongs, so I'm posting it here--------------------------------------------------I was wonderng for anyone who can help... I've been making websites and things like that for a couple of years, but through my time, I have never taken the time to make my own counter. In all the cases, I simply found some advertised counter and put it in my site. And while that isn't a bad idea, I would like to make my own, customizable counter, that's all my own. If anyone has any ideas on how to make a cool counter, or even perhaps just a starter counter, that would be great.My preference, by the way, would be some counter that was1. mini2. tidy3. futuristic.If there's someone who's knowledgeable enough in the subject to give some advice, that would be great.Thanks!

Share this post


Link to post
Share on other sites

I believe this belongs, so I'm posting it here

--------------------------------------------------

I was wonderng for anyone who can help... I've been making websites and things like that for a couple of years, but through my time, I have never taken the time to make my own counter.  In all the cases, I simply found some advertised counter and put it in my site.  And while that isn't a bad idea, I would like to make my own, customizable counter, that's all my own.  If anyone has any ideas on how to make a cool counter, or even perhaps just a starter counter, that would be great.

 

My preference, by the way, would be some counter that was

1. mini

2. tidy

3. futuristic.

 

If there's someone who's knowledgeable enough in the subject to give some advice, that would be great.

 

Thanks!

<{POST_SNAPBACK}>


Well you're pretty close on this one so we'll just put you on the right track. ;)

 

Because JavaScript is a client side script, it isn't able to keep a running count of page views. JavaScript has no way of writting information to a file on the server where a count file or database would be hosted.

 

The easiest way is to have a small text file with one line of information on it (the current count that is) and a script file that reads the count file and increaces the count each view and displays the count.

 

Because of the before mention limitations in JavaScript, you'll need to use a server side script or cgi. While php would be the easiest way to learn this; C, C++, Perl, Java, VB, etc. could all be used.

 

Here are 2 tutorials in PHP that may help.

Flat File counter: http://forums.xisto.com/topic/80177-topic/?findpost=1064275846

MySQL counter: http://forums.xisto.com/topic/80316-topic/?findpost=1064276669

 

Additionally, you'll find a lot of good information about PHP here: http://forums.xisto.com/topic/168-forum/

 

Additionally, I'd like to let everyone know that we just recently added a tutorial request forum here: http://forums.xisto.com/topic/192-forum/

 

Well, I hope that this will get you on your way now.

 

Happy Counting. ;)

 

vujsa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.