Install
- Copy the following table structure into your MySQL database
(e.g. via phpMyAdmin):
CREATE TABLE `skhits` ( `hitDate` date NOT NULL default '0000-00-00', `hitTime` time NOT NULL default '00:00:00', `hitRefer` varchar(255) default NULL, `hitAgent` varchar(130) NOT NULL default 'unknown', `hitIP` varchar(15) NOT NULL default '127.0.0.1', `hitURL` varchar(100) default NULL, `hitType` tinyint(1) NOT NULL default '0', PRIMARY KEY (`hitDate`,`hitTime`,`hitIP`), KEY `hitTime` (`hitTime`) );If you change the table name fromskhits, remember to write down the new name. - Open
values.inc.phpand edit server variables as appropriate. Remember to changeHIT_TABLEif you changed the table name in the above step. - Upload
/sk.hitsdirectory to your website in the location specified by$_VARS['site_path']. - Include the following line on any PHP page where you wish to track hits:
<? @include( 'sk.hits/values.inc.php' ); ?>Remember to adjust the pathing location as necessary. - To display the hit counter, use the following where you would like it to
appear on your page:
<? get_hitcounter(); ?> - To not count your own visits to your site, open the page
dontcountme.phpin your browser. You may wish to delete or rename this page to prevent other people from excluding themselves!