• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Need Simple Web Counter

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
 
402blownstroker said:
Looking for a very simple web page counter. No PHP or database interaction.

Keith

use fopen to open a txt file (counter.txt), grab the number in the file, increment it, and fwrite back to the file.
 
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.
 
Try statcounter.com. You have the option of making it invisible, it's free, options for how to implement it, etc. I use it, does its job just fine.
 
i use next gen stats, u can make it invisible if you want, and it gives u a statistic page of like, hits today, in the past week, all time, and the ips that visited with their referred links.
 
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.
 
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.

Indeed

Sorry guys, didn't make it to that part; Why not user perl? If it also doesnt allow that then use javascript, there are plenty google samples out there for custom making a page counter in whatever languages you have access to.
 
When you say "No PHP" does that mean, literally, "No PHP", or does it mean "No Server-side Scripting" (which would exclude any sort of CGI)? I'll assume it means the latter.

If you can't do anything server-side, you can't make a counter. (you might be able to hack some JS that lets an individual client know how many times they loaded a page, but that's not very interesting).

Using a web-counter service is still server-side, it's just somebody else's server.
 
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.
 
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.

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)
 
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)

Or they are using a script blocker such as the Firefox Extension 'noscript'
 
Asgorath said:
Or they are using a script blocker such as the Firefox Extension 'noscript'

true..but i'm willing to bet that only a very tiny percentage of users would be disabling JS. a number that may be statistically insignificant in terms of visitor tracking. so it may not matter much for the OP's purposes.
 
Back
Top