Re: How can a script tell if there's a MySQL problem?
| From: | Per Jessen | Date: | Fri, 09 Jan 2009 17:44:45 +0000 |
| Subject: | Re: How can a script tell if there's a MySQL problem? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285874@lists.php.net to get a copy of this message | ||
Nathan Rixham wrote:
> Bastien Koert wrote:
>> 1. Make sure you are freeing up all resources as soon as you can ->
>> mysql_close();
>>
>
> little thing I've done for some time that's stuck with; (php5+ only)
>
> on all of my database connection classes, I have the db close function
> in the destructor just to make sure
I guess it depends on the type of application - for a web-transaction
running on a web-server, why bother? It'll clean up after itself
anyway.
/Per Jessen, Zürich