R: [PHP-DB] Persistant connection
| From: | Roberto Sartor | Date: | Fri, 29 Sep 2000 15:52:27 +0000 |
| Subject: | R: [PHP-DB] Persistant connection | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3172@lists.php.net to get a copy of this message | ||
Simple: Keep on using OCIPLogon() instead of a common OCILogon where you
need persistent connections, but don't use OCILogoff() at the script end!
PHP will reuse it as soon as a new connection is required and one (with same
parameters as it has had) is available from a bunch.
Naturally, OCILogoff() will ever close a connection.
Ciao
Roberto
> -----Messaggio originale-----
> Da: Octavian Dobrin [mailto:Octavian.Dobrin@connex.ro]
> Inviato: venerdì 29 settembre 2000 17.43
> A: PHP-DB
> Oggetto: [PHP-DB] Persistant connection
>
>
> Hello.
>
> I have this problem... me and my colleague...
>
> We have an object for an Oracle Database connection.
> The object contains the actual connection to
> the oracle database. We retained the object as a session
> variable in order to have the connection to
> the database persistent across multiple pages. The object is
> retained but the database connection
> property within it is no longer valid.
>
> We tried a persistant connection (ociplogon) but the
> connection is still invalid.
>
> So, how can we connect to the database only one time
> and use this connection for constructing
> multiple pages?
>
> Thanks.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>