Re: php-oracle: How pass permanent connections with OCIPLogon between web-pages?

From: Date: Fri, 15 Sep 2000 09:38:47 +0000
Subject: Re: php-oracle: How pass permanent connections with OCIPLogon between web-pages?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2912@lists.php.net to get a copy of this message
On Fri, Sep 15, 2000 at 08:30:38AM +0200, Roberto Sartor wrote: > if I do a permanent connection like this: > > <?php > ... > ... > ... > $conn=OCIPLogon ($username,$password, $alias_db); > $stmt=OCIParse ($conn,$sql); > ... > ... > ... > ?> > > and I don't close it at the end of the script, what do I need to pass to > another page to use the same? > What I need, is using the same connection, not opening some others. > > Is enough something like <a href=next_page.php?conn=$conn>? > > I tried and received an error, when I used parameter $conn.Do I need to > transform it? > > Thanks to everyone for answers. http://www.php.net/manual/features.persistent-connections.php explains it pretty well. tc > > Ciao > Roberto > -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.db (#2912) next »