i have a counter in the header of our forum but it only refreshes when te page is reloaded. is there a way to make it refresh like the chatbox itself does without reloading the whole page?
if it refreshes every minute or so, then i can monitor the chat without being logged in to the chat. 
what i have now is like this
$messages_filename  = '../phpFreeChat/data/private/chat/mychatbox/messages.data';
if (file_exists($messages_filename))
{
  	$Diff = (time() - filectime("$messages_filename"));
   if ($Diff < 300)   //300 seconden = 5 minuten
	{
		$files = array();
	   $files = array_merge($files, glob('../phpFreeChat/data/private/chat/mychatbox/nicknames/*'));
		$free_chat_online_users =count($files);
	}
	if ( $free_chat_online_users > 0)
	{
		$free_chat_icon_suffix='_active';//show other icon
	}
}
$l_free_chat_online_users = "(".$free_chat_online_users.")";
 $l_free_chat_online_users_explain = 'Last message on '.date("d/m/Y H:i",filectime("$messages_filename")+6*3600); //6 hour shift
			
		

