gcount wont display on test url

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
kmikc
Posts: 2
Joined: Wed Sep 23, 2015 9:36 pm

gcount wont display on test url

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: gcount wont display on test url

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kmikc
Posts: 2
Joined: Wed Sep 23, 2015 9:36 pm

Re: gcount wont display on test url

Post by kmikc »

Hi there...

problem solved. Thanks!
Post Reply