getting error when using PHPcount 1.0 - PHP text hit counter

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
Jesper Møller
Posts: 8
Joined: Thu May 25, 2006 5:16 pm

getting error when using PHPcount 1.0 - PHP text hit counter

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

Post by Klemen »

What have you set for
$referers
in counter.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
Jesper Møller
Posts: 8
Joined: Thu May 25, 2006 5:16 pm

Post by Jesper Møller »

$referers = array ("www.jart.dk/jgom/");

jgom being the sites rootfolder

same as i use for the download counter
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
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
Post Reply