|
For the World's Most Important Web Site - YOURS! VPS v2 Support Documentation |
||||
|
|
VPS v2 CGI Library: counterIt seems that the hit counter is just about as ubiquitous as the web itself. Two simple counter CGIs, one text and one graphical, are presented in the sections below. The text counter was written by Jonathan Lewis. The graphical counter is simply a modification of the textual counter by Scott Pierce. InstallationAs the root user, copy the counter directory from the /usr/local/share/contrib/ directory on your VPS v2 to the appropriate cgi-bin for the domain that will be using the script. Make sure to change the file ownership to the correct user. ConfigurationTo configure the counters, do the following.
UsageNow you are ready to implement your new counter. Place the counter server side include in the HTML of the page on which you want to have a counter. In the .html file include something like the following in the main body of HTML.
Graphical Counter Digit SetsYou have the flexibility of specifying a graphical counter digit set to be used to display the count if you are using the graphical counter. Several Digit Sets are included in the distribution. To use any of these digit sets, set the $digit_path, $digit_width, and $digit_height variables as indicated. You will find the declaration of the $img_path, $digit_width, and $digit_height variables in the c4g.pl CGI on lines 9-11. Many other digit sets are available. The definitive site for graphical digit sets is Digit Mania Have a look at the hundreds (literally) of digit sets available. If you find a digit set that you would like to use, it is a very simple procedure to configure the c4g.pl CGI to use your preferred images. Just follow these steps:
|
|||
|
© 1996 - 2008 Web Hosting Solutions 1311 Darcann Drive, Columbus, OH 43220 1-888-522-3738 Money Back Guarantee 99.9% Uptime Guarantee Like sports? Visit ColumbusSports.com |