Page 1 of 1

[SOLVED]Mysql_close connection

Posted: Mon Aug 02, 2004 10:02 am
by Calimero
Just a question,

will I get anything if I use mysql_close in the end.

is it good for processor - to tell him to dump results...
for security ... like, connection is still open and can bug something..

Any suggestions ...

php doc's didn't tell much - if anyone has real life expirience...

Thanks Ahead !

Posted: Mon Aug 02, 2004 11:48 am
by Draco_03
mysql_close is essential I Always close my connection after a given script.
exemple , after the user modify his information, the connection close.

Posted: Tue Aug 03, 2004 8:13 am
by JAM
Draco_03 wrote:mysql_close is essential
Not essential, but "A Good Thing (tm)".

The link is closed after the script is executed/ended, but as the scripts grow bigger and more complicated, executing a mysql_close at certain points is useful.

This also reflects on what kind of hardware the server is using, amount of visitos/time-interval etc etc. Personally, I do use it.