402blownstroker
[H]ard|DCer of the Month - Nov. 2012
- Joined
- Jan 5, 2006
- Messages
- 3,257
Looking for a very simple web page counter. No PHP or database interaction.
Keith
Keith
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
402blownstroker said:Looking for a very simple web page counter. No PHP or database interaction.
Keith
MadJuggla9 said:use fopen to open a txt file (counter.txt), grab the number in the file, increment it, and fwrite back to the file.
Your best bet would be to look for a javascript solution. I'm sure google has some scripts you can copy and paste right into your pages.No PHP
mikeblas said:Of course, fopen() was a function in C about 20 years before it was a function in PHP.
You won't be able to make a page counter without some sort of server-side scripting; if PHP isn't on the list, you'll have to tell us what is available to you.
MadJuggla9 said:What kind of host do you have? You will need to rely on another server for SSI langs to produce what you want, which means try a few of the options above, just look for a free stat counter, but be prepared to have a link and advertisements on it.
Some don't require self promotion, google would be your best bet there. Too bad your host sucks.
maw said:StatCounter can be installed invisibly, just copy/paste a little javascript on the page(s) you want to track. Visitors won't even know it's there (unless they do a view-source)
Asgorath said:Or they are using a script blocker such as the Firefox Extension 'noscript'