Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Christian Reiniger
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()

RE: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Picard, Cyril
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

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Plutarck
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

RE: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Picard, Cyril
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

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Plutarck
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

Re: [PHP] Persistent connection many scripts ?

2001-04-17 Thread Plutarck
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

RE: [PHP] Persistent connection many scripts ?

2001-04-17 Thread Picard, Cyril
= $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