Yes, at the end of a page, any open resources are "freed".
The use of specifically closing a db connection is:
1) Good programming form.
2) Efficient resource usage. If after you connect to your database, it
takes a second for your script to finish, then that is 1 second longer that
resources are tied up if you wait for PHP to automatically clean up.
Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: <rajula@l...>
To: "professional php" <pro_php@p...>
Sent: Thursday, October 04, 2001 6:31 AM
Subject: [pro_php] Re: closing a persistant MySQL link
> I dont hink it is required to close the mysql_connect .
> Anyhow it will close when the script ends.
> If we have to use mysql after the script ends we have to connect once
> again in mysql_connect.
> Or is it a must that we should close the connection.
> Anyhow I am not closing any connection(using mysql_connect).I did not
> encounter any problem.
>
> clarify me reg .
> Ajay
>
>