开发者

Database Connection PHPBB

开发者 https://www.devze.com 2023-01-17 03:03 出处:网络
In web applications like phpBB, when every time a new page is requested, is a new database connection created?

In web applications like phpBB, when every time a new page is requested, is a new database connection created?

For example when 5 users login using login.php simultaneously, is a new database connection created for each of the 开发者_StackOverflow中文版five users?


PHP does not support connection pooling. phpBB does have the option of using mysql_pconnect. pconnect however is not pooling, but a primitive form of re-sharing a database connection. Related: Connection pooling in PHP

To answer your question: Yes, PHP applications open a new connection each time.

0

精彩评论

暂无评论...
验证码 换一张
取 消