Page 1 of 1

gcount wont display on test url

Posted: Wed Sep 23, 2015 9:55 pm
by kmikc
Script URL: http://saobang.de/counter/gcount.php?page=test
Version of script: 131
Hosting company: wint.global
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: counter not displaying

Write your message below:
Hi there,
I was trying to set up this php script to work on my website. But as you can see from the above url, the counter is not displaying somehow. When I just do copy the direct link from the error message, I then will see the .gif picture.

can you help me to have it displayed?

thanks,
kmikc

Re: gcount wont display on test url

Posted: Thu Sep 24, 2015 7:02 am
by Klemen
There are two problems with your test:

1. you have a wrong "$base_url" setting in your gcount.php file, it is missing "http://".

Change the line in the gcount.php file to say exactly:

Code: Select all

$base_url = 'http://saobang.de/counter/';
2. what the counter prints is Javascript code, you need to include it in your web page to start showing correctly (see readme.htm file under "Using hit counter").

As per readme instructions, add this code to our HTML page:

Code: Select all

<script type="text/javascript" src="http://saobang.de/counter/gcount.php?page=test"><!--
//--></script>
If you are not familiar with inserting Javascript into HTML, you can use this simple trick:
http://www.phpjunkyard.com/tutorials/cut-paste-code.php

Re: gcount wont display on test url

Posted: Thu Sep 24, 2015 8:23 am
by kmikc
Hi there...

problem solved. Thanks!