Daily counter

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

#counter #daily #visit

9 replies · 657 views · started 15 years ago · 1 min read

4 participants
jayasrilanka Junior · 12 posts #1

Please masters i want daily visits counter code or script,

pmbguy Senior · 344 posts #2

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...

khan Lead · 681 posts #3

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";
subzero Super moderator Fellow · 3,954 posts #7

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... _______…

pmbguy Senior · 344 posts #9

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...

External image (may be gone)

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...

Attachments: hits.zip
jayasrilanka Junior · 12 posts #10

Oh ma god, i didnt visited this thread in 3days... Wow wow wow.. Thanks in adv. Wapmasters 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close