Daily counter
Started on the old forum in March 2011 · view the original in the archive · old links redirect here
like you mean how many visits a day or a script that only counts one visit per day?
cause depending on which one, you'd either need to do a date check to confirm day of year n check if 'daily' update on counter done yet, or do a date check to see which date the visit is on, thus meaning in db you can have table name ie: visits... visitdate, userid kinda thing, where you could
select count where userid = $uid and date = x
kinda thing, thus telling you exactly how many times users logged in on a daily track record kinda thing...
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search
to catch visit:
$day='1';
$fp=@fopen("./todayvisit.txt", "a");
@fputs($fp, "$day");
@fclose($fp);
to show:
$visit=@filesize("./todayvisit.txt");
echo "Visit today: $visit";
yeah, that's the simplest way to do it... although it just counts how many times the page has loaded... so double posting etc might offset the accuracy...
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search
He doesnt need accuracy i guess. He needs to show how many visits he got.Reloadin doesnt matter. 😉
true i guess, i'll try code a counter script with mysql and a limiter on time for visits counted. I'm bored today, lol
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search
rukiya wrote: Unique Hitcounter
<?php $ip=$_SERVER[REMOTE_ADDR]; $file=file_get_contents("ipLog.txt"); if(substr_count($file, $ip)==0) { $file.="\n" . $ip; } file_put_contents("ipLog.txt", $file); $total=substr_count($file, "\n"); echo "$total"; ?>make a ipLog.txt in the same directory and chmod777
There ya go sucker oh i mean brother 😉
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
ok, here's my little coded solution for you...
hit counter... coded to basically plug into pretty much any lava script and pretty much anything too, forgive the time spent, imagettf is such a mission getting the text to sit how i want it to, lol...
oh and sorry about filesize impact.ttf included
enjoy it, and hope it gets used by more people than just me, lol...
Oh yeah, that should go up once every 5 minutes, thinking maybe I'll try make that once per 5 minutes with ip log, so it counts all individual hits every 5 minutes...
lol, nah can't be bothered...
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search
Oh ma god, i didnt visited this thread in 3days... Wow wow wow.. Thanks in adv. Wapmasters 🙂