I
I
Ilya Bobkov2016-02-01 10:26:37
PHP
Ilya Bobkov, 2016-02-01 10:26:37

Will the server itself close the connection?

Hello. Actually I use mysql. But I do not use the procedure for closing the connection. Question: If you do not close the server itself, will the server itself close the connection?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-02-01
@heksen

if you do not have a daemon, then when the script ends, the connection will close itself, if this is not a permanent connection, of course.

A
Andrew, 2016-02-01
@AndHacker

Closing a connection is good manners, just like closing files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question