I have a radio and i wanna know how to make a listener counter? or do i need to acctually buy a radio to have a listener counter?

I have a radio and i wanna know how to make a listener counter? or do i need to acctually buy a radio to have a listener counter?
I'm back and moving to anew character!
Seriously you dont make sense.
"i have a radio"
then
"or do i need to buy a radio"
So you dont have one or do you?
it's a pre-recorded radioi just record me djing and put it on my site
so can i get a radio counter?
I'm back and moving to anew character!
So you dont have shoutCAST?
no or any othe streaming program
I'm back and moving to anew character!
Ok, you want ascript to say how many people are on your site?
exactly![]()
I'm back and moving to anew character!
kkkkk
Edited By Snoop-20(Forum Moderator): Please do not Double Post
Last edited by Flisker; 28-06-2006 at 05:49 AM.
I'm back and moving to anew character!
I found this:
Obviously youll need a db- i searched the forum and found itPHP Code:
<?php
// Configuration
$dbhost = "localhost";
$dbuser = "[to-add]"; // MySQL Username
$dbpass = "[to-add]"; // MySQL Password
$dbname = "[to-add]"; // Database Name
$timeoutseconds = 1200; // length of session, 20 minutes is the standard
$timestamp=time();
$timeout=$timestamp-$timeoutseconds;
$ip = substr($REMOTE_ADDR, 0, strrpos($REMOTE_ADDR,"."));
// Connect to MySQL Database
@mysql_connect($dbhost,$dbuser,$dbpass);
@mysql_select_db($dbname) or die("No db");
// Add this user to database
$loopcap = 0;
while ($loopcap<3 && @mysql_query("insert into useronline values('$timestamp','$ip','$PHP_SELF')"))
{ // in case of collision
$timestamp = $timestamp+$ip{0}; $loopcap++;
}
// Delete users that have been online for more then "$timeoutseconds" seconds
@mysql_query("delete from useronline where timestamp<$timeout");
// Select users online
$result = @mysql_query("select distinct ip from useronline");
$user = @mysql_num_rows($result);
mysql_free_result($result);
@mysql_close();
// Show all users online
if ($user==1) {echo $user.' user online';} else {echo $user.' users online';}
?>
whats a db? a data base? and what would i put as it?
I'm back and moving to anew character!
Want to hide these adverts? Register an account for free!