I have this great PHP script to show how many people are currently visiting the page...
But I want to know this:
$db=mysql_connect("localhost","user","pass") or die(mysql_error());
$time        = time();
$clear_time  = $time - 600;
$update_time = $time - 30;
$ip          = $_SERVER['REMOTE_ADDR'];
$onQuery = mysql_query("SELECT ip FROM c_online WHERE ip = '".$ip."' LIMIT 1") or die(mysql_error());
$onCount = mysql_num_rows($onQuery);
About the clear_time & update_time....

If I want to make a longer session (instead of the time now)
Do I need to raise the 600 & 30 or lower?
As I see this $time MINUS 600...

So normally I would raise it (for example to 6000), but as I see 'time' MINUS something it is maybe lowering it to 60 instead...

Can someone help please?