Database server auto-close



I just wondered if someone could clarify... I have a a script connecting
with mysql_connect and in an include at end of page mysql_close

If they script terminates before end of page ie. with an exit() or maybe trigger_error(), does php always disconnect the open'ed connection?

I ask because PHP manual says yes, but I've seen some comments relating to PHP 4 saying it doesn't.

Please can you tell me your experiences?
.



Relevant Pages

  • Re: Count question
    ... I guess I should clarify that a little. ... I meant use the php count function ... instead of the mysql count function. ... > Your simplest method would be to either fetch the array of names and use ...
    (alt.php)
  • Re: Speed :: XML vs. Database
    ... since no hard drive work will be involved. ... Could you clarify the above statement or perhaps provide a link to a ... I have always used just plain HTML for my ... PHP and MySQL with the thought of eventually migrating my "plain Jane" ...
    (comp.lang.php)
  • Re: Prob in phpMyAdmin on IIS installation on Windows XP
    ... >Let me clarify. ... I can read and write from a MySQL database in normal ... >But updating through phpMyAdmin to a page served by IIS is what runs ... >it's going through the same driver that my PHP applcation script uses. ...
    (comp.lang.php)
  • Re: Passing values from drop down menu
    ... I think I need to clarify what my objective is. ... Hash: SHA1 ... way round) ...
    (comp.lang.php)
  • Re: regexp question
    ... > Sorry to post a mySQL question to a PHP group....but I have searched for ... Just to further clarify, here's ... > the type of code syntax I'm looking for: ...
    (alt.php)