PDA

View Full Version : Site stats



smurf-you
02-05-2005, 12:38 PM
Hey, i was woundering if anyone could tell me a link to a good Site counter

I would like to have a lot of stats like how many per day over all ect, You know what i mean


I'll add rep also

Thanks

Homosexual
02-05-2005, 12:40 PM
http://www.nedstatbasic.net/ (http://www.nedstatbasic.net/s?tab=1&link=1&id=3100579)

smurf-you
02-05-2005, 12:43 PM
Does that actually go on the site for visiters to see?

Homosexual
02-05-2005, 12:44 PM
No ;)

It comes up a [] Square and you click it to see stats

smurf-you
02-05-2005, 12:46 PM
Oh do you know one, That everyone can see them, As be eaiser and looks good, Sorry to be a pain.

Homosexual
02-05-2005, 12:48 PM
No, sorry.

iRoss
02-05-2005, 12:48 PM
www.cutandpastescripts.com

www.fastusersonline.com

Look in CGI Center on Cpanel. You will find some clocks and stuff like that :)

smurf-you
02-05-2005, 12:55 PM
I've been on cutandpaste before, But i can't seem to get the script?? Anyway how i can :s

iRoss
02-05-2005, 12:58 PM
You have to register?

Oh and for the php code for your IP adress to show when u open the page is

<? echo "IP: $REMOTE_ADDR"; ?>

<?php echo $_SERVER['HTTP_USER_AGENT']; ?>

Make sure if u use these that the page ends in .php instead of .htm or .html

Homosexual
02-05-2005, 01:03 PM
RegisterRegisterRegisterRegisterRegister

Mentor
02-05-2005, 01:09 PM
Do u wnat just a hit counter or stats? hit counter u may as well do u self as its so simple.

if you wnat stats and counter best place is http://www.statcounter.com/

Or if you want toi get reaLY GOOD stats, and the option of very persific counters i suggest http://www.tracewatch.com/ which is what gives me all thybags statistcs. Athogh by defiult it shows nothing on teh page, u can use the php api to show what ever stats u like

smurf-you
02-05-2005, 01:11 PM
Alrighty, I got a counter, But don't like it Very much

I'm really looking for one like this


Page veiws: 10
Page Veiws Per day on average: 1
Webpage load time: 1.405 @56k
Kind of like that, Not just a boring one with just one counter

Thanks

smurf-you
02-05-2005, 01:17 PM
Oh cool thanks Mentor and everyone else:)


OPPS DOUBLE POST DARN Delete

iRoss
02-05-2005, 01:21 PM
:O wewt :D i did the stats thing :D u know the .php 1 yay :D

Mentor
02-05-2005, 01:43 PM
Alrighty, I got a counter, But don't like it Very much

I'm really looking for one like this


Page veiws: 10
Page Veiws Per day on average: 1
Webpage load time: 1.405 @56k
Kind of like that, Not just a boring one with just one counter

Thanks
the tracewatch thing i think can give u an average, athogh just for that its a little pointless.


for a page genirtaion time.

at the very top of the page, aboev abosulty everything.
ad (u need php page)


<?php
class Debug {
function startTimer() {
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
}
function endTimer() {
global $starttime;
$mtime = microtime ();
$mtime = explode (' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = round (($endtime - $starttime), 5);
return $totaltime;
}
}

$Debug = new Debug;
$Debug->startTimer();
?>


Then where u wnat the counter to show,
ad


<?php
$load = sprintf( "%.4f",$Debug->endTimer() );
echo $load ;
?>


Keep in mind, it wont be compleaty acurte as it put gets how long the page has taken to genirate that persic bit, so the nearer tpo the end it is the more acuret it will be.

page views u would just use



<?php
$fp = fopen ( "hits.txt" , "r" );
$count = fread ( $fp , filesize( "hits.txt" ));
fclose ( $fp );
$count ++;
$fp = fopen ( "hits.txt" , "w" );
fwrite ( $fp , $count );
fclose ( $fp );
echo $count ;
?>


juts put that where u wnat to have hist diplayed. aslo in teh same directry creat a .txt document called hits so hits.txt and chmod it to 777.

smurf-you
02-05-2005, 02:28 PM
I tryed it, But how i make a php page Or like the tag for a php code? i forgot:(

Mentor
02-05-2005, 02:31 PM
just have the page as index.php rather than .htm etc. then its just normal html on it, exspet stuff between
<?php

?>

tags

smurf-you
02-05-2005, 02:34 PM
You can't put php on html page??

Mentor
02-05-2005, 02:36 PM
nope, but u can put html on a php page.

Only way u could run php of a html page would be by chaning apachie fiels to runn html as php documents "/ but u cnat do that unless u hsoting u self "/

smurf-you
02-05-2005, 02:44 PM
Sounds to tricky, I'm just looking for something basic

I've already got A poll and shout box look Click here (http://neoart.co.uk)


I'm looking for webstats like that just as simple, sign up get code = happy chap, Any ideas?

Mentor
02-05-2005, 02:46 PM
none that can give you the stats you wanted, hit counters best u can do for remotly hosted. "/

smurf-you
02-05-2005, 02:49 PM
YAY, I got one i like:), Does it look alrighty, Thanks for your help Mentor rep added:)

Want to hide these adverts? Register an account for free!