RE: [PHP] Persistent connection & many scripts ?
| From: | Picard, Cyril | Date: | Wed, 18 Apr 2001 11:48:22 +0000 |
| Subject: | RE: [PHP] Persistent connection & many scripts ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49183@lists.php.net to get a copy of this message | ||
hummm... I don't know how to use pg_pconnect()... It returns a connection
ID, isn't it ? And I have to use this connection ID later ?
I would like to reuse this connection ID to another script... and the
problem is here :(
I feel that I ignore something so important that I'm stopped and so trivial
that you do not think about it !
> -----Message d'origine-----
> De: Christian Reiniger [SMTP:creinig@mayn.de]
> Date: mercredi 18 avril 2001 13:40
> À: php-general@lists.php.net
> Objet: Re: [PHP] Persistent connection & many scripts ?
>
> On Tuesday 17 April 2001 16:28, you wrote:
> > Yes... I'm not familiar with sessions. This should be like this ? :
> >
> > In connect.php :
> > <?php
> > session_start();
> > $connect = pg_pConnect("blablabla");
> > session_register("connect");
> > <A HREF="query.php?<?=SID"?>clique ici</?>
> > ?>
>
> Simply using pg_pconnect() (without saving the connection ID) should be
> just as fast and more failproof
>
> --
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)
>
> AAAAA - American Association Against Acronym Abuse
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net