Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Acmlmboard support?. |
Acmlm's Board - I2 Archive - Acmlmboard support? - Just a question? | | | |
Add to favorites | "RSS" Feed | Next newer thread |
User | Post | ||
Black Lord Level: 34 Posts: 3/453 EXP: 235639 For next: 18012 Since: 03-15-04 From: Nebraska, what's a Nebraska Since last post: 8 days Last activity: 1 day |
| ||
Why use pconnect instead of connect to connect to the database in v1.8a.. The reason I ask this is cuase a couple months ago at TEK we were having max user connection problems... Chaos Force asked what the proble could be and they said that we should use connnect instead of pconnect... we changed it... and haven't had problems since... |
|||
Tuvai Permanently banned for account hacking. Level: 24 Posts: 11/211 EXP: 74894 For next: 3231 Since: 03-15-04 Since last post: 566 days Last activity: 339 days |
| ||
Pconnect = Persistent connection Unlike mysql_connect(), mysql_pconnect() doesn't open a new connection every time, but first check if there already is an open connection with the host. |
|||
Black Lord Level: 34 Posts: 7/453 EXP: 235639 For next: 18012 Since: 03-15-04 From: Nebraska, what's a Nebraska Since last post: 8 days Last activity: 1 day |
| ||
well... that makes sense... but why was the max user connections coming up then... and not now...??? | |||
Tuvai Permanently banned for account hacking. Level: 24 Posts: 13/211 EXP: 74894 For next: 3231 Since: 03-15-04 Since last post: 566 days Last activity: 339 days |
| ||
Simple, the maximum ammount of connections is a server setting; if the ammount of open connections is or is higher than the number in that setting, you get the error. EDIT: What I am wondering is why mysql_close() is used in the Acmlm Board source code... mysql_close() is not supposed to be used with mysql_pconnect, but mysql_connect. (edited by Tuvai on 03-15-04 08:08 AM) (edited by Tuvai on 03-15-04 08:11 AM) |
|||
Black Lord Level: 34 Posts: 8/453 EXP: 235639 For next: 18012 Since: 03-15-04 From: Nebraska, what's a Nebraska Since last post: 8 days Last activity: 1 day |
| ||
Well the thing is... we'd get the error... when say there was only one person online.... with pconnect... and now we have sometimes up to 15 online at once... and don't get any errors... | |||
Tuvai Permanently banned for account hacking. Level: 24 Posts: 14/211 EXP: 74894 For next: 3231 Since: 03-15-04 Since last post: 566 days Last activity: 339 days |
| ||
Well, you're most probably not the only site hosted on the server you are on, so it's a little dependant on the other sites as well. |
Add to favorites | "RSS" Feed | Next newer thread |
Acmlm's Board - I2 Archive - Acmlmboard support? - Just a question? | | | |