When should I close a database connection in PHP?

后端 未结 2 418
自闭症患者
自闭症患者 2020-12-05 12:18

I\'m nothing like a php developer but I do have to use it and I\'m not really aware on how PHP handle memory allocation during session.

I\'m working on an applica

2条回答
  •  天命终不由人
    2020-12-05 12:55

    From PHP's Mysqli documentation:

    a connection between a client process and a database can be reused by a client process, rather than being created and destroyed multiple times. This reduces the overhead...

提交回复
热议问题