Striver Posted March 31, 2005 Posted March 31, 2005 I would like to run my own hit counter program. I am assuming that the counter program offered in cpanel uses the fly image generating program. Is it possible for me to access fly with my own script and, if so, where is it located? And, if not, can I install fly on my own site. I generally write all my own perl scripts from scratch. It just gives me a lot more control. Thanks Lee Quote
TCH-Bruce Posted March 31, 2005 Posted March 31, 2005 Not really sure what cPanel uses for their counter. Personally I don't use them on any pages since I have full access to the logs and AwStats. But yes, I write my own perl scripts too for other things. Quote
Pendragon Posted April 1, 2005 Posted April 1, 2005 I would like to run my own hit counter program. I am assuming that the counter program offered in cpanel uses the fly image generating program. Is it possible for me to access fly with my own script and, if so, where is it located? And, if not, can I install fly on my own site. I generally write all my own perl scripts from scratch. It just gives me a lot more control. Thanks Lee <{POST_SNAPBACK}> What does this do, exactly? Quote
Striver Posted April 1, 2005 Author Posted April 1, 2005 What does this do, exactly? <{POST_SNAPBACK}> The fly program is so named because it creates gif images "on the fly". You have sets of number pictures 0.gif through 9.gif. The counter program sends the list of picture files needed to the fly program. The fly program then joins those files into a single .gif file. And returns that file to the page as an image. Lee Quote
Striver Posted April 1, 2005 Author Posted April 1, 2005 Personally I don't use them on any pages since I have full access to the logs and AwStats. <{POST_SNAPBACK}> I don't use them so much as a counter, but as an integrated psychological element of interactivity on the page. Or, more simply, it adds a bit of life. The problem with most counters is that they stand out too much. I like to have complete control over it so I can match the image to the exact font and colors of the page. I generally integrate it tightly into the page design with something like "Welcome visitor number 159732". I could use the counter program they have if I could add my own number sets to it. Lee Quote
Pendragon Posted April 1, 2005 Posted April 1, 2005 What does this do, exactly? <{POST_SNAPBACK}> The fly program is so named because it creates gif images "on the fly". You have sets of number pictures 0.gif through 9.gif. The counter program sends the list of picture files needed to the fly program. The fly program then joins those files into a single .gif file. And returns that file to the page as an image. Lee <{POST_SNAPBACK}> Any reason not to just send individial images? Quote
Striver Posted April 1, 2005 Author Posted April 1, 2005 Any reason not to just send individial images? <{POST_SNAPBACK}> Well, the way it is set up, you can call a single image using straight html with img src="counter.cgi". If you were to use multiple images you would need an img tag for each digit and the counter program would have to somehow keep track of them through multiple requests. It could probably be done, but it would be a monstrosity. Lee Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.