0

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 five users?

Karthick
  • 2,844
  • 4
  • 34
  • 55

1 Answers1

0

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.

Community
  • 1
  • 1
igorw
  • 27,759
  • 5
  • 78
  • 90