So I have upgraded freichat to version 8 on my server (custom install, not without issues) and adjusted many functions according to my needs. I added user pictures to the chatroom, modified database design a bit, etc.
The code is generally nice but I have a few questions:
1. First of all, there is a nasty bug in the install which fails right at the start saying that "arg.php is not writeable" (although it is). After spending 20 minutes banging my head against the wall checking permissions, I checked the freichat code and noticed it is "hardcode.php" that actually needs to be writeable. So you need to adjust the message there.
2. Secondly, why did you choose to revert to MyISAM, especially now in the days of Mysql 5.5 when InnoDB is the default and is clearly superior in every way (even more so for a chat application)?
3. Third, are you sure it's worth using persistent connections? Most users might run into issues because of this, if they don't know how to adjust their "max_connections" variable in my.cnf. And the performance benefits are neglijible, especially if the sql server resides on the same machine as the web server (as probably most of your users do). In my case, a few minutes after launching the chat on the live server, I ran into a "Failed to conect to SQL server; Too many connections" error. Luckily I knew immediately how to fix it.
That's it for now; more feedback coming :)
So I have upgraded freichat to version 8 on my server (custom install, not without issues) and adjusted many functions according to my needs. I added user pictures to the chatroom, modified database design a bit, etc.
The code is generally nice but I have a few questions:
1. First of all, there is a nasty bug in the install which fails right at the start saying that "arg.php is not writeable" (although it is). After spending 20 minutes banging my head against the wall checking permissions, I checked the freichat code and noticed it is "hardcode.php" that actually needs to be writeable. So you need to adjust the message there.
2. Secondly, why did you choose to revert to MyISAM, especially now in the days of Mysql 5.5 when InnoDB is the default and is clearly superior in every way (even more so for a chat application)?
3. Third, are you sure it's worth using persistent connections? Most users might run into issues because of this, if they don't know how to adjust their "max_connections" variable in my.cnf. And the performance benefits are neglijible, especially if the sql server resides on the same machine as the web server (as probably most of your users do). In my case, a few minutes after launching the chat on the live server, I ran into a "Failed to conect to SQL server; Too many connections" error. Luckily I knew immediately how to fix it.
That's it for now; more feedback coming :)