View Full Version : Statistics, How Do i Put Them On My Site?!
lMattz
01-10-2005, 01:12 PM
Like radiohabbo.com
I would liek statistics like that.
Mentor, anyone else know the php code?
Thanks
Matt
splintercell!
01-10-2005, 02:17 PM
IP adress is just:
<?php echo $_SERVER['REMOTE_ADDR']; ?>
lMattz
01-10-2005, 02:45 PM
Thankyou.
Needed:
Time/Date
Views Today
Overall Views
Browser
Please help if you can.
Thanks splintercell! rep added. I give rep to for each code given.
Thanks
Matt.
splintercell!
01-10-2005, 02:51 PM
Time and date is
<?php $date = date("d-m-Y"); echo $date; ?>
lMattz
01-10-2005, 03:22 PM
More rep added. Thankyou.
splintercell!
01-10-2005, 07:43 PM
I just remebered the browser one I think...
try..
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>
lMattz
01-10-2005, 08:33 PM
Okay now i have 3 code how would i set them out in a .php file?!
splintercell!
01-10-2005, 10:04 PM
well make your index page a php page and place the codes I gave you where you want them or.. just add this to a file called stats.php or something and then include it in your index.
<?php
echo "IP:";
echo $_SERVER['REMOTE_ADDR'];
echo "<br>";
echo "Date:";
echo date("d-m-Y");
echo "<br>";
echo "Browser:";
echo $_SERVER['HTTP_USER_AGENT'];
?>
lMattz
01-10-2005, 10:34 PM
O, thanks thats great! Ill give u some more rep tomorrow.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.