|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 247 Joined: 26-July 04 Member No.: 211 |
Post
#11
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 |
![]() ![]() ![]() Group: Members
Posts: 41 Joined: 15-September 04 Member No.: 1,125 |
Post
#12
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. |
![]() ![]() Group: Members
Posts: 32 Joined: 30-January 05 Member No.: 3,494 |
Post
#13
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] |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 773 Joined: 4-November 04 Member No.: 2,118 |
Post
#14
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..
|
![]() ![]() Group: Members
Posts: 32 Joined: 30-January 05 Member No.: 3,494 |
Post
#15
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? 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] |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 310 Joined: 9-February 05 From: Italian Member No.: 3,677 |
Post
#16
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 |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
5 | Shibbeh | 16,135 | 20th August 2004 - 10:04 PM Last post by: ill |
|||
![]() |
13 | KooL | 14,417 | 31st August 2004 - 10:08 AM Last post by: Too_Hot |
|||
![]() |
21 | dask | 18,728 | 26th January 2009 - 10:14 PM Last post by: -Sky- |
|||
![]() |
4 | gpinvest | 1,971 | 29th October 2009 - 03:29 AM Last post by: iG- |
|||
![]() |
9 | KooL | 11,757 | 2nd April 2009 - 11:04 AM Last post by: varalu |
|||
![]() |
1 | tomecki | 4,193 | 31st August 2004 - 08:52 PM Last post by: neeki4444 |
|||
![]() |
9 | shadowx | 3,328 | 12th October 2009 - 07:12 PM Last post by: manish-mohania |
|||
![]() |
4 | xmae | 9,165 | 24th August 2006 - 03:21 PM Last post by: juice |
|||
![]() |
7 | football123213 | 15,618 | 20th August 2004 - 12:25 AM Last post by: ill |
|||
![]() |
2 | -Pandemonium- | 12,096 | 22nd August 2004 - 04:25 AM Last post by: -Pandemonium- |
|||
![]() |
8 | -Pandemonium- | 9,340 | 25th August 2004 - 04:00 PM Last post by: -Pandemonium- |
|||
![]() |
5 | blackhawk | 6,185 | 31st August 2004 - 01:13 PM Last post by: Spectre |
|||
![]() |
0 | Raptrex | 7,132 | 6th September 2004 - 11:19 PM Last post by: Raptrex |
|||
![]() |
11 | dozen | 10,481 | 13th September 2004 - 07:26 PM Last post by: melkonianarg |
|||
![]() |
4 | spyshow | 6,571 | 21st September 2004 - 03:19 AM Last post by: Spectre |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 07:01 AM |
Web Hosting Powered by ComputingHost.com.