share connection descriptor between php files
Posted: Mon Oct 07, 2002 1:21 pm
Hello
I'm trying to connect to an Oracle9i server using the oci8 dll under windows. It works fine using ociplogon. I use this function because it
is said that it makes a persistant connection to the database. My problem is that I want to share the connection descriptor in other php files and it seems that I have to reconnect every time!! Someone said to me that
I should call ociplogon on every page, but that this one will effectively
start a connection if there wasn't any other started by the same process.
I everytime I go to another page, ethereal sees that a new connection
is getting on!!
When do these objets <die>?
How can I share the descriptor between the php files?? I already tried
sessions, serialized, get, post but I get always the same error:
"The parameter you passed to ociplogon is not a valid oci8 objet"...
Thank you for any response:) sorry for my english
I'm trying to connect to an Oracle9i server using the oci8 dll under windows. It works fine using ociplogon. I use this function because it
is said that it makes a persistant connection to the database. My problem is that I want to share the connection descriptor in other php files and it seems that I have to reconnect every time!! Someone said to me that
I should call ociplogon on every page, but that this one will effectively
start a connection if there wasn't any other started by the same process.
I everytime I go to another page, ethereal sees that a new connection
is getting on!!
When do these objets <die>?
How can I share the descriptor between the php files?? I already tried
sessions, serialized, get, post but I get always the same error:
"The parameter you passed to ociplogon is not a valid oci8 objet"...
Thank you for any response:) sorry for my english