MuHitCounter Script ver.

Installation Instructions
  1. Download MuHitCounter & unpack the zip file.
  2. Open and configure the muhcconfig.php file.
  3. Edit link "href" in the code for each page that contains links to other pages on your site or download documents:-
    • insert download.php into the href
    • add ?Dn= in front of the page to be linked to
    • add &Ct= followed by the name of the counter
    • So your link should look like this:-
      <a href="download.php?Dn=linkedpage.htm&Ct=count1">
      (A count name can be any alphanumeric name)
  4. Edit the muhitcounts.csv file to include all count names you put in above (count1 in the example above):-
    (NB - do not include the header lines in this table)
    Col. 1
    Counter name
    Col. 2
    P=Page F=File L=Link
    Col. 3
    Detail
    Col. 4
    Counter (0 at start)
    count1 P Home Page 0
    count2 P About Us 0
    download1 F Price List 0
    link1 L outside weblink 0
  5. Upload all files in the main folder on your server.
  6. If you want also to count total hits to your site, simply rename your home/landing page (probably already named something like index.html or index.htm) to something else, for example home.php (as in the example below, where the counter in hitcounts.csv is called home), and edit the refresh line in download.php to read:-
    <meta http-equiv="refresh" content="0;url=download.php?Dn=home.php&Ct=home">
    NB Do NOT save this back as download.php!
    Then save the edited file with a suitable name such as index.php

That's it!

Note:- Under some circumstances it is not possible to put the full URL in the HREF line - I have some websites which open a LightBox url in a new layer of the present page, and in such circumstances the technique above won't work. There is however a workaround. In the download file is a text file called special.txt, which you would insert in the file to be linked to (in my example above, in the LightBox calling file), change the $counter reference to whatever you are using to count hits to that file, and save it with a .php extension. So, if your href was <a href="myfile.htm"...> you would simply change ".htm" to ".php" and not use the download.php for that link.