Re: MySQL close connection, what's the purpose?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/1/06, Anthony Ettinger <aettinger@xxxxxxxxxxxxxx> wrote:
> On 3/31/06, chris smith <dmagick@xxxxxxxxx> wrote:
> > On 4/1/06, tedd <tedd@xxxxxxxxxxxx> wrote:
> > > At 10:30 PM +0200 3/31/06, Martin Zvarík wrote:
> > > >Hi,
> > > >    I was wondering why is it necessary to use
> > > >mysql_close() at the end of your script.
> > > >If you don't do it, it works anyways, doesn't it?
> > > >
> > > >MZ
> > >
> > > MZ:
> > >
> > > I always close the connection right after my
> > > query -- force of habit. It's like leaving the
> > > toilet seat up, it's only going to get you into
> > > trouble.
> >
> > So you close it after every query and then re-open it later for the
> > next query? I don't see that as a good idea.
> >
>
> No, you leave it open until you're done with the database.

Reading Ted's post didn't give this impression. I wanted to make sure
he wasn't doing it that way.

--
Postgresql & php tutorials
http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux