IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
2 Pages V  < 1 2  
Reply to this topicStart new topic

Does any one have a php counter script?

, Free counter script?


BoSZ
no avatar
the one with a short temper
*********
Group: Members
Posts: 247
Joined: 26-July 04
Member No.: 211



Post #11 post Sep 14 2004, 11:52 PM
hi

i tested over 500 counter and statistic scripts (big numer load of time)

look goyz
i have selected 10-20 of the best(be adviced that i dont use txt scripts only the ones based on Db's)

if any want a name or a script
just pm me


take care
Go to the top of the page
+Quote Post
Mr Self Destruct
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 41
Joined: 15-September 04
Member No.: 1,125



Post #12 post Sep 15 2004, 07:01 AM
The php counter script I use for all my sites is phphits v1.1 found at www.johannesgamba.com. It's very handy because you can set the time duration of what counts as a "new" hit, and you can display the number of users online in a duration of time, and also the number of hits in the last 24 hours. It also has a log page with statistics of what users came at what time, their IP and what page they hit. Very handy.

Also it's very easy to use if you know the basics of php. It uses a MySQL database.
Go to the top of the page
+Quote Post
jordanliuhao
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 32
Joined: 30-January 05
Member No.: 3,494



Post #13 post Feb 1 2005, 05:55 AM
This will not work in a busy web site. Because there are many concurrent access, we need some mechanism to synchronize the access.

The error is
1 The count may not be correct. Suppose one request get count=1. At the mean time, another request get the same count=1. after both write finish, count=2 instead of count=3
2 The write to the file may cause the file corrupt, because fopen is not locked even you open it for write.

the process should be:

<?
fopen()
flock(LOCK_EX)
fread()
count++
fwrite()
flock(LOCK_UN)
fclose()

?>

QUOTE(Roly @ Aug 21 2004, 07:34 PM)
First upload a file anmed 'counter.txt' and chmod it to 666 with your ftp.
Then put this on your file:
CODE
<?php
$count = file_get_contents('counter.txt')+1;
fwrite(fopen('counter.txt', 'w+'), $count);
echo $count;
?>

[right][snapback]8061[/snapback][/right]
Go to the top of the page
+Quote Post
no9t9
no avatar
Privileged Member
*********
Group: Members
Posts: 773
Joined: 4-November 04
Member No.: 2,118



Post #14 post Feb 1 2005, 06:00 AM
omg.. the last post in this thread was over 4 months ago.. And the original poster isn't even a member of the board anymore! Why bring back a thread that has been dead for so long? Arrrrrggh..
Go to the top of the page
+Quote Post
jordanliuhao
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 32
Joined: 30-January 05
Member No.: 3,494



Post #15 post Feb 1 2005, 06:10 AM
The others can find what they want when search in the forum. Do you want others to get the wrong answer? smile.gif

QUOTE(no9t9 @ Feb 1 2005, 01:00 AM)
omg.. the last post in this thread was over 4 months ago.. And the original poster isn't even a member of the board anymore!  Why bring back a thread that has been dead for so long?  Arrrrrggh..
[right][snapback]45556[/snapback][/right]
Go to the top of the page
+Quote Post
alexia
no avatar
Super Member
*********
Group: Members
Posts: 310
Joined: 9-February 05
From: Italian
Member No.: 3,677



Post #16 post Feb 27 2005, 10:22 PM
This is Fan Post
Where can i find this CMS is really funny
So , U Can find Many Website support PHP Scripts Like hotscripts.com and You can search on search EN and u can find many tutoial about Flatfile And SQL for Counter Script and u can Use CGI Counter in Cpanel
I think best counter is Cpanel Counter
No DB No File Easy And Fast And No Space for upload Files biggrin.gif
Go to the top of the page
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   5 Shibbeh 16,135 20th August 2004 - 10:04 PM
Last post by: ill
No New Posts   13 KooL 14,417 31st August 2004 - 10:08 AM
Last post by: Too_Hot
No new   21 dask 18,728 26th January 2009 - 10:14 PM
Last post by: -Sky-
No New Posts   4 gpinvest 1,971 29th October 2009 - 03:29 AM
Last post by: iG-
No New Posts   9 KooL 11,757 2nd April 2009 - 11:04 AM
Last post by: varalu
No New Posts   1 tomecki 4,193 31st August 2004 - 08:52 PM
Last post by: neeki4444
No New Posts   9 shadowx 3,328 12th October 2009 - 07:12 PM
Last post by: manish-mohania
No New Posts   4 xmae 9,165 24th August 2006 - 03:21 PM
Last post by: juice
No New Posts   7 football123213 15,618 20th August 2004 - 12:25 AM
Last post by: ill
No New Posts   2 -Pandemonium- 12,096 22nd August 2004 - 04:25 AM
Last post by: -Pandemonium-
No New Posts   8 -Pandemonium- 9,340 25th August 2004 - 04:00 PM
Last post by: -Pandemonium-
No New Posts   5 blackhawk 6,185 31st August 2004 - 01:13 PM
Last post by: Spectre
No New Posts   0 Raptrex 7,132 6th September 2004 - 11:19 PM
Last post by: Raptrex
No New Posts   11 dozen 10,481 13th September 2004 - 07:26 PM
Last post by: melkonianarg
No New Posts 4 spyshow 6,571 21st September 2004 - 03:19 AM
Last post by: Spectre


 



RSS Open Discussion Time is now: 22nd November 2009 - 07:01 AM

Web Hosting Powered by ComputingHost.com.