views:

80

answers:

1

What happes when the scrip that made @mysql_connect($server, $user, $password) dies? How long does it live?

Thank you!

+1  A: 

Connections opened by mysql_connect() are closed at script exit, unless closed earlier by calls to mysql_close().

http://www.phpdig.net/ref/rn41re774.html

cballou
Is there any other source that says it?
mxg
the php manual itself says so. see the notes section at: http://us.php.net/manual/en/function.mysql-connect.php
longneck