-
File save on server?
I need to save a file - or something else on my server, to make a hitcounter. The problem is that this counter is to be made by client side only languages(preferably JavaScript), is this possible? Or should I direct it through an ASP page(The least favored option...)
Cheers!
-
the only thing client side JS could do is to create a timer which counts how many times THAT user has visited your site. I think ASP (sorry) or PHP or cgi are needed otherwise. And unfortunately I can't use any of those languages.
-
Well
I do know how to use ASP, and .Net to make a hit counter - but i'm trying to make it for a host that doesn't support SSL - which is my problem... But i'll try redirecting and counting that way - just have to host the counter myself then =/.
Cheers!
-
The SSL acronym for server-side languages is poorly chosen, it actually means secure socket layer.
If you have a little space on a server that DOES support SSS (server-side scripting), you can place the counter there. Simply have a link to an image on the main page (or every page if you want to count every page). The source of this image is a script on your second server that increments the hit count for the referrer (so you can use it for various sites) and then generates an image with the current count on it and sends it back.
-
The inability of client-side scripts to persistently store information makes them unsuitable for the job.