Date: 09/29/00
- Next message: John Guynn: "[PHP-DB] 2 selects that return 0 rows one errors one doesn't"
- Previous message: Octavian Dobrin: "[PHP-DB] Persistant connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
> 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 <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: John Guynn: "[PHP-DB] 2 selects that return 0 rows one errors one doesn't"
- Previous message: Octavian Dobrin: "[PHP-DB] Persistant connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

