I wanted a visitor counter for my webpages hosted here and I got something from cPanel that does the job, but not quite as I intended. I'd like some help modifying the code to tweak it. The code comes from:
cPanel --> "Software/Services" pane --> CGI Center --> Counter
It takes you to a page headed "Counter/Clock/Date Box Generator" where you can fill in your preferences for a counter. You then click on an "HTML" button and it generates code for you similar to this:
<img src="/cgi-sys/Count.cgi?df=username.dat|display=Counter|ft=2|md=5|frgb=100;139;216|dd=E">
By default "username" will be your login name. From other posts here, I gather that your stats go into a .dat file of that name, but I haven't been able to find any such file anywhere in my subdomain area. Not with an FTP client nor with File Manager, even with the latter set to display hidden files.
Pasting the above code into a webpage will add a counter to the page. x10hosting calls it a visitor counter, but it's really just a hit counter. It counts multiple returns by the same visitor to the same page (even myself). From what I've read, a visitor counter (as opposed to a hit counter) should ignore multiple repeat hits and only count, say, 1 hit per day from each unique user. I think uniqueness is based on the visitor's IP address.)
What I would really like is an invisible counter, i.e. one not visible to visitors, and I would get my stats from the .dat file. Can anyone tell me how to modify the code to achieve that and how to find the .dat file?
I know hardly anything about CGI.
cPanel --> "Software/Services" pane --> CGI Center --> Counter
It takes you to a page headed "Counter/Clock/Date Box Generator" where you can fill in your preferences for a counter. You then click on an "HTML" button and it generates code for you similar to this:
<img src="/cgi-sys/Count.cgi?df=username.dat|display=Counter|ft=2|md=5|frgb=100;139;216|dd=E">
By default "username" will be your login name. From other posts here, I gather that your stats go into a .dat file of that name, but I haven't been able to find any such file anywhere in my subdomain area. Not with an FTP client nor with File Manager, even with the latter set to display hidden files.
Pasting the above code into a webpage will add a counter to the page. x10hosting calls it a visitor counter, but it's really just a hit counter. It counts multiple returns by the same visitor to the same page (even myself). From what I've read, a visitor counter (as opposed to a hit counter) should ignore multiple repeat hits and only count, say, 1 hit per day from each unique user. I think uniqueness is based on the visitor's IP address.)
What I would really like is an invisible counter, i.e. one not visible to visitors, and I would get my stats from the .dat file. Can anyone tell me how to modify the code to achieve that and how to find the .dat file?
I know hardly anything about CGI.