Re: Persistent database connections in PHP
| From: | murugesan | Date: | Fri, 05 Sep 2003 06:30:34 +0000 |
| Subject: | Re: Persistent database connections in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161730@lists.php.net to get a copy of this message | ||
Just use the same header.
and in the next page use
<body onload=window.open(yourpage)>
...
Murugesan
----- Original Message -----
From: "Cesar Aracena" <lists@icaam.com.ar>
To: "'Shivanischal'" <shivan@subexgroup.com>
Cc: <php-general@lists.php.net>
Sent: Friday, September 05, 2003 11:27 AM
Subject: RE: [PHP] Persistent database connections in PHP
> I haven't heard of persistent connections with MySQL before, and I think
> is because PHP can't handle it. PHP will connect to the DB every time it
> has to. Are you really that annoyed for that 0.0003 second that it
> probably takes your pages to connect to the DB?
>
> What I do to manage just ONE connection request per visitor, is request
> a mainfile.php which also declares a function that connects to the DB.
> After that is prepared to handle all the queries you want.
>
> HTH,
>
> Cesar Aracena
> www.icaam.com.ar
>
> > -----Mensaje original-----
> > De: Shivanischal [mailto:shivan@subexgroup.com]
> > Enviado el: Viernes, 05 de Septiembre de 2003 01:05 a.m.
> > Para: php-general@lists.php.net
> > Asunto: [PHP] Persistent database connections in PHP
> >
> > Hi friends,
> >
> > I wanted help on how to achieve persistent database connections in
> PHP.
> > The
> > database i use is MySQL. I would be grateful if u could also guide me
> to
> > resources that tell me how to do it.
> >
> > Thanks,
> > -shiva
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>