• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Little Problem of timeout and Co

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby Cyb » Thu Mar 10, 2011 9:09 am

Hi,

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 :) Thank you,

Best regards !
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby phpfreechat » Thu Mar 10, 2011 11:17 am

It seams that you are using a NFS filesystem. PFC can't work correctly on such filesystem because filemtime php function will not work correctly...
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Cyb » Thu Mar 10, 2011 12:28 pm

ok, are you telling me I have to try another script chat that this one ? Because I can't change php settings : I am on a mutual servor... A good one but I can't change php settings :)

Thanks
Cyb
Member
 
Posts: 11
Joined: Fri Mar 04, 2011 2:53 pm
Top

Postby phpfreechat » Thu Mar 10, 2011 7:15 pm

Yes try another because current phpfreechat version absolutely need the filemtime php function...
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 11 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub