What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Stats Script

Stats Script
Author: Message:
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. Stats Script
Ok it's me again on about scripts :S this script is simple but i;m in a rush for it :P

http://www.stuffplug.com has stats
http://www.mpsounds.net has stats

How do they get the stats?

Like how many page views on certain pages, users online (i know this one) how many files in the downloads database etc :S

Can someone tell me how they show this a nd give me the basic script for it :P

Thanks :)
06-12-2005 11:36 AM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Stats Script
page views = hit counter
download database = probably just mysql_num_rows() on their download database

just search hotscripts for hit counters and download databases, theres loads
06-12-2005 11:42 AM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: Stats Script
ffs learn PHP and stop asking people to code you simple scripts.  If you actually follow some PHP tutorials your see that it isnt actually hard, just try doing it yourself
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
06-12-2005 11:44 AM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. RE: Stats Script
quote:
Originally posted by Dempsey
ffs learn PHP and stop asking people to code you simple scripts.  If you actually follow some PHP tutorials your see that it isnt actually hard, just try doing it yourself

meh :$ I will learn php but i sorta need it now :S I knew you two would post first :lol:

Something like lj said would help i can code around that, accept i still need something to work with :p

It is a hit counter but not a big ugly one. One that only shows text would help :S
06-12-2005 11:50 AM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Stats Script
omg all you need for a hit counter is a few lines of code really

<?
$counter = fopen("counter.txt", "r");
$blah = fread($counter, filesize("counter.txt"));
fclose($counter);
$counter = fopen("counter.txt", "w");
$blah++;
fwrite($counter, $blah);
fclose($counter);
echo $blah;
?>

may show up an error first time but shouldnt after that
06-12-2005 12:00 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
O.P. RE: Stats Script
thanks lj that's what i wanted i'm tryed to show the users browser and ip now :P

Edit: New test http://www.msgstuff.com/test.php
http://www.msgstuff.com/test2.php :P

This post was edited on 06-12-2005 at 12:26 PM by absorbation.
06-12-2005 12:03 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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