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()
trivial
that you do not think about it !
-Message d'origine-
De: Christian Reiniger [SMTP:[EMAIL PROTECTED]]
Date: mercredi 18 avril 2001 13:40
:[EMAIL PROTECTED]
Objet:Re: [PHP] Persistent connection many scripts ?
On Tuesday 17 April 2001 16:28, you wrote:
Yes... I'm
tant that I'm stopped and so trivial
that you do not think about it !
-Message d'origine-
De: Christian Reiniger [SMTP:[EMAIL PROTECTED]]
Date: mercredi 18 avril 2001 13:40
À: [EMAIL PROTECTED]
Objet: Re: [PHP] Persistent connection many scripts ?
On Tuesday 17 April 2001 16:28, you wrot
SELECT * FROM XYZ");
?
Is it what you mean ?
PS : I understand that my code here is not very usefull ;-)
-Message d'origine-
De: Plutarck [SMTP:[EMAIL PROTECTED]]
Date: mercredi 18 avril 2001 15:57
: [EMAIL PROTECTED]
Objet: Re: [PHP] Persistent connection many s
code here is not very usefull ;-)
-Message d'origine-
De: Plutarck [SMTP:[EMAIL PROTECTED]]
Date: mercredi 18 avril 2001 15:57
À: [EMAIL PROTECTED]
Objet: Re: [PHP] Persistent connection many scripts ?
Nope, you don't need to save the ID. PHP/database does the work of
remembering w
Ideally you could use pconnect, then save the connection ID into a session.
Then just try and use the connection like that.
That _should_ work. But you may just want to use pconnect and not bother
with the rest...that might be just as good as what you are trying to do.
--
Plutarck
Should be
= $HTTP_SESSION_VARS["connect"];
$result = pg_Exec($connect, "SELECT * FROM xyz");
?
-Message d'origine-
De: Plutarck [SMTP:[EMAIL PROTECTED]]
Date: mardi 17 avril 2001 16:03
:[EMAIL PROTECTED]
Objet: Re: [PHP] Persistent connection many scripts ?
Ideall
7 matches
Mail list logo