Info

  • Latest: v1.0
  • Date: 2 May '07

Navigation

Install

  1. 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 from skhits, remember to write down the new name.
  2. Open values.inc.php and edit server variables as appropriate. Remember to change HIT_TABLE if you changed the table name in the above step.
  3. Upload /sk.hits directory to your website in the location specified by $_VARS['site_path'].
  4. 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.
  5. To display the hit counter, use the following where you would like it to appear on your page: <? get_hitcounter(); ?>
  6. To not count your own visits to your site, open the page dontcountme.php in your browser. You may wish to delete or rename this page to prevent other people from excluding themselves!

sk.ODE and all scripts created by Alis Dee, 2004-2007 by-nc-sa (0 / 8755).

Valid HTML Strict. Valid CSS.