Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作った台本が@mysql_connect($server, $user, $password)死んだらどうなる? それはどのくらい生きますか?
@mysql_connect($server, $user, $password)
ありがとうございました!
mysql_connect() によって開かれた接続は、以前に mysql_close() の呼び出しによって閉じられていない限り、スクリプトの終了時に閉じられます。
http://www.phpdig.net/ref/rn41re774.html
mysql_close()スクリプトが終了すると閉じますが、不要なときにリンクを解放して明示的に閉じることをお勧めします。
mysql_close()