Using CCount to count no. of file accesses.

Everything related to CCount PHP click counter
Post Reply
Penmere
Posts: 2
Joined: Sun Oct 03, 2010 8:16 pm

Using CCount to count no. of file accesses.

Post by Penmere »

My website 'www.swtw.co.uk' consists of lines like the following:-
<pre><a href="http://www.swtw.co.uk/AllThrough.mp3">All through the night</a></pre>
and clicking on the text 'All through the night' will cause the file 'AllThrough.mp3' to be played.
I tried inserting the code 'ccount/click.php?id=1' as shown here:-
<pre><a href="http://www.swtw.co.uk/ccount/click.php? ... h.mp3">All through the night</a></pre>
but that resulted in a message about invalid ID numbers when I tried to run the file. I tried other positions for the code but to no avail . No clicks were ever recorded, although I added the links into the admin panel OK. I would be very grateful if someone could tell me where I am going wrong.
Best regards
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Using CCount to count no. of file accesses.

Post by Klemen »

This is the correct code for your file:

Code: Select all

<pre><a href="http://www.swtw.co.uk/ccount/click.php?id=4">All through the night</a></pre>
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
Penmere
Posts: 2
Joined: Sun Oct 03, 2010 8:16 pm

Re: Using CCount to count no. of file accesses.

Post by Penmere »

Thanks Klernen for your response. I was putting the click.php?id= code into the admin panel links as well.
I will set up all the links now starting from 1. I will be buyin you a beer.
Post Reply