Page 1 of 1

Graphcount.php not working

Posted: Sun Apr 10, 2005 5:00 am
by Guest
I've installed graphcount.php per the instructions in readme.htm. I've set $Check-referers to 0. The hit counter does not display on preview or when I open the site online. I'm using frontpage and insert the Javascript into the HTML for my website manually. Javascript is enabled in frontpage. Any ideas what could be wrong?

Posted: Sun Apr 10, 2005 9:25 am
by Klemen
Hi,

Open the direct URL to graphcount.php in your browser, like this:

http://www.yourdomain.com/gcount/graphc ... ?page=test

and see if you get an error message. If it says something like "Can't open/write the log file!" you didn't set correct file permissions. See my tutorial how to do that:
http://www.phpjunkyard.com/ftp-chmod-tutorial.php

If that isn't the problem post the URL to your site / graphcount.

Regards

Graphcount.php not working

Posted: Mon Apr 11, 2005 2:11 am
by Guest
Thanks for your help, I fixed a couple of problems and tried running the script again. It now shows the X "broken image" sign, at least the script is executing. I've checked all the paths, filenames etc, they all look ok. The script is trying to open .gif files in ../styles/web1/. Do you have any suggestions on why the .gif files won't display?

Graphcount.php not working

Posted: Mon Apr 11, 2005 2:17 am
by Guest
The script is now executing, except I get the broken image sign. I've checked paths, filenames etc they all look ok. Its trying to open gif files located in ../styles/web1/. Do you have any suggestions on what could be wrong?

Posted: Mon Apr 11, 2005 11:16 am
by Klemen
What's the URL of your installation?

Regards

Graphcount.php not working

Posted: Mon Apr 11, 2005 10:09 pm
by Guest

Posted: Mon Apr 11, 2005 10:40 pm
by Klemen
Hi,

In graphcount.php check if your $base_url is set to:

Code: Select all

$base_url = "http://www.d-esig-n.com.au/"; 
Should be the EXACT code as above. If you have /htdocs/ in the path remove it. And it must end with a /

Was this the problem?

Regards

Graphcount.php not working

Posted: Tue Apr 12, 2005 4:49 am
by Guest
Yes, that was the problem, thanks for your help.

Re: Graphcount.php not working

Posted: Fri May 20, 2005 4:05 pm
by Guest
Guest wrote:I've installed graphcount.php per the instructions in readme.htm. I've set $Check-referers to 0. The hit counter does not display on preview or when I open the site online. I'm using frontpage and insert the Javascript into the HTML for my website manually. Javascript is enabled in frontpage. Any ideas what could be wrong?
im having a similar problem. i cant even get the php file to open, it says the file cannot be found. the address is http://somedaypunk.brinkster.net/newdes ... page=index

i have followed the readme instructions. i also tried the basic text counter, but this does not display either. do i have to initialise any code at the beginning of the html page before the <head> command?

Posted: Fri May 20, 2005 4:25 pm
by Klemen
If the page can't be found then there is an error in your URL. Check the URL and note that everything after the domain is CaSe SeNsiTiVe (folder and files).

The Javascript code should be placed somewhere within <body> and </body> - where you want the code to display.