What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Using Awstats to make a hitcounter

Using Awstats to make a hitcounter
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Using Awstats to make a hitcounter
nah you need to do stuff in this order

fopen with r parameter to read it
fread it
store in a variable
fclose
fopen again with w parameter to clear it and prepare it for writing
add 1 to the variable
fwrite
and then echo it

code:
<?
$counter = fopen("counter.txt", "r");
$blah = fread($counter, filesize("counter.txt"));
fclose($counter);
$counter = fopen("counter.txt", "w");
$blah = $blah + 1; //not sure if $blah++ would work, try it
fwrite($counter, $blah);
fclose($counter);
echo $blah;
?>


This post was edited on 05-22-2005 at 08:41 PM by Eljay.
05-22-2005 08:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Using Awstats to make a hitcounter - by user27089 on 05-22-2005 at 08:16 PM
RE: Using Awstats to make a hitcounter - by saralk on 05-22-2005 at 08:23 PM
RE: Using Awstats to make a hitcounter - by RaceProUK on 05-22-2005 at 08:32 PM
RE: Using Awstats to make a hitcounter - by saralk on 05-22-2005 at 08:33 PM
RE: Using Awstats to make a hitcounter - by RaceProUK on 05-22-2005 at 08:36 PM
RE: Using Awstats to make a hitcounter - by saralk on 05-22-2005 at 08:38 PM
RE: Using Awstats to make a hitcounter - by Eljay on 05-22-2005 at 08:39 PM
RE: Using Awstats to make a hitcounter - by Veggie on 05-22-2005 at 08:53 PM
RE: Using Awstats to make a hitcounter - by RaceProUK on 05-23-2005 at 08:33 AM
RE: Using Awstats to make a hitcounter - by Eljay on 05-23-2005 at 08:36 AM
RE: Using Awstats to make a hitcounter - by Stigmata on 05-23-2005 at 08:52 AM
RE: Using Awstats to make a hitcounter - by -dt- on 05-23-2005 at 01:20 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On