I have installed 1.3 phpfreechat, and it works good, but I have some little problems with one or two things :
Sometimes, when a member is logged, and if this person doesn't write : timeout.
I think I have to change parametres but I don't know chich one and how to corrige that error.
I wanna know how much people are connected (not their nick, only how much)
So I tried to put some code how it's explaind there : http://www.phpfreechat.net/forum/viewtopic.php?id=4783
It works BUT when there is a timeout, the number is falls and it displays the error. I'd prefer it to show a falls number but not an error ?!
What have I to change to not display error logs in the future ?
=>
Warning: filemtime() [function.filemtime]: Stat failed for /[blablanumero]/channelid-to-nickid/SERVER/[numero] (errno=116 - Stale NFS file handle) in [blabla]/chat/src/containers/file.class.php on line 184
AND sometimes, informations are fals. It's writen that we are 2 when we are 3 ?
My code to check how much people are connected is this :
- Code: Select all
require_once dirname(__FILE__)."/src/pfcinfo.class.php";
$info = new pfcInfo( "blabla");
// NULL is used to get all the connected users, but you can specify
// a channel name to get only the connected user on a specific channel
$users = $info->getOnlineNick(blabla);
$info = "";
$nb_users = count($users);
if ($nb_users <= 1)
$info = "<strong>%d</strong> personne en ligne !";
else
$info = "<strong>%d</strong> personnes en ligne !";
echo "<p>".sprintf($info, $nb_users)."</p>";
echo "</div>";
Of course I have here remplaced blabla by my settings

I'm still french, so sorry, I do my best to write in english

Best regards !