Can I count non-clicked visits also?
Can I count non-clicked visits also?
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:
visit + count
Write your message below:
The admin display is great.
I would like to be able to include non-click visits to pages in the count. (eg if somebody bookmarks a page and uses that to access the page it will not currently be counted). Is there a work-around to include those accesses?
Could click.php be called when the page loads with that page's index? If that is possible, how do I go about it?
Thank you for a great, simple to use, script.
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:
visit + count
Write your message below:
The admin display is great.
I would like to be able to include non-click visits to pages in the count. (eg if somebody bookmarks a page and uses that to access the page it will not currently be counted). Is there a work-around to include those accesses?
Could click.php be called when the page loads with that page's index? If that is possible, how do I go about it?
Thank you for a great, simple to use, script.
You need to use click.php to count any clicks so unless someone clicks a click.php link it won't count.
To count how many HITS a page has you should use a hit counter.
To count how many HITS a page has you should use a hit counter.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Still pursuing my desire to count visits. I have not done very much with PHP.
In relation to the page which calls click.php, is it possible, using PHP, to access that page's URL and the URL from which that page was accessed.
(i.e. in javascript terms document.location and document.referrer.)
Thanks for any help.
In relation to the page which calls click.php, is it possible, using PHP, to access that page's URL and the URL from which that page was accessed.
(i.e. in javascript terms document.location and document.referrer.)
Thanks for any help.
To be honest I think you are complicating way too much. You will count all clicks on the link, but if someone bookmarks the target page and you want to count clicks from BOOKMARKS/favorites you will just complicate everything. PHP has means of redirecting and finding out HTTP referer but keep in mind not all browsers send along the http referer variable.
What you should do is use CCount for what it's been designed to do - count CLICKS on a LINK. To count ALL visits, including those from bookmarks, you should place a hit counter on the target page.
Code: Select all
Header("Location:http://www.somesite.com");
Code: Select all
variable $_SERVER['HTTP_REFERER']
What you should do is use CCount for what it's been designed to do - count CLICKS on a LINK. To count ALL visits, including those from bookmarks, you should place a hit counter on the target page.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Just got an idea, maybe you could set a blank (empty) gif image in CCount and the use something like
on your page. In that case it would count any page view, even from bookmarks and you could use direct links within your site, not click.php ones.
Code: Select all
<img src="http://domain.com/ccount/click.php?id=xx" border="0" width="1" height=1">
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Can you please explain what mechinsm is involved in using the blank image.
I am assuming that when the browser attempts to display the blank image the count for page xx is incremented.
Would the only modification to the site be to add a blank image to each page to be counted. Where xx as the ID of the page upon which the image reference is placed.
I am assuming that when the browser attempts to display the blank image the count for page xx is incremented.
Would the only modification to the site be to add a blank image to each page to be counted. Where xx as the ID of the page upon which the image reference is placed.
I have remove the line...
Header("Location: $url");
from click.php and saved it as visit.php, and included the line...
<img src="/ccount/visit.php?id=xx" border="0" width="1" height=1">
in the <BODY> of the page which has index xx, and it seems to increment clicks.txt correctly for page xx.
I would be interested in any comments about the validity of this approach before I modify the 20 main pages of the site.
Thank you
Header("Location: $url");
from click.php and saved it as visit.php, and included the line...
<img src="/ccount/visit.php?id=xx" border="0" width="1" height=1">
in the <BODY> of the page which has index xx, and it seems to increment clicks.txt correctly for page xx.
I would be interested in any comments about the validity of this approach before I modify the 20 main pages of the site.
Thank you
That works, but I still think you should use a HIT COUNTER for what you want to do, not a CLICK counter.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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