+ Reply to Thread
Results 1 to 5 of 5

Thread: displaying the counter

  1. Join Date
    Sep 2005
    Posts
    3

    displaying the counter

    hi all
    i have got this script working, but am confused as to how to display it within my site..
    i have <?php include("counter/counter.php"); ?> in my page, but it doesnt display the same as here http://www.sportstar.co.za/counter/counter.php
    please can you help me, thanks
    Rich

    edit: nice i got it working now changed counter/counter.php to http://www.sportstar.co.za/counter/counter.php

  2. Join Date
    Aug 2004
    Posts
    781

    displaying the counter

    Don't do that. That will result in your counter not counting visitors properly.

    Instead, include it with the full absolute path.

    Try placing the following in abspath.php in the counter folder to see your abs path:
    Code:
    <? echo dirname(__FILE__) . "/"; ?>
    Visit the file in a browser.

  3. Join Date
    Sep 2005
    Posts
    3

    displaying the counter

    thanx alot man i got it working now..replaced with absolute url..

    i wanted to also ask, how can i not display the total hits?

  4. Join Date
    Aug 2004
    Posts
    781

    displaying the counter

    Simply edit counter-display.html to whatever you want the counter to look like.

    In your case, you could just simply remove the "<b>Total Hits:</b> !COUNTER-HITS!" line.

  5. Join Date
    Sep 2005
    Posts
    3

    displaying the counter

    slick! thanx for the help Patiek

    I have another problem now though, and I have no idea whats causing this...
    Every now and again the counter will ouput an error accessing the text db files..Click Here to view the error...at http://www.sportstar.co.za
    Now these files are chmod'ed to 666..so why do you think this is happening?
    Is it possibly a lag with the server?

    now ive also noticed when i view counter/stats/ it seems to only be saving stats for each day..:blink:
    Thanx for the help

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts