Page 1 of 1

getting error when using PHPcount 1.0 - PHP text hit counter

Posted: Tue Jun 13, 2006 7:44 pm
by Jesper Møller
Script URL:
Version of script: PHPcount 1.0 - PHP text hit counter
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:


when trying to use the PHPcount 1.0 - PHP text hit counter i get an error
The script worl fine in IE but in NN and FF i get this:

Error: missing ; befor statement
Source File: http://www.jart.dk/jgom/tutorials/tutde ... page1.html Line: 1
Invalid referer!

Why ??


This is how i call the script

Code: Select all

<script type="text/javascript" src="../../../componenter/pagecount/counter.php?page=centerpage1"><!--
//-->
		</script>
:?

Posted: Wed Jun 14, 2006 7:36 pm
by Klemen
What have you set for
$referers
in counter.php?

Posted: Wed Jun 14, 2006 7:42 pm
by Jesper Møller
$referers = array ("www.jart.dk/jgom/");

jgom being the sites rootfolder

same as i use for the download counter

Posted: Thu Jun 15, 2006 11:57 am
by Klemen
Hi,

You should change that to

$referers = array ("jart.dk");

You only need the domain name and settings in download counter have different usage than this.