passing db persistent connections through different pages

From: Date: Thu, 21 Jun 2001 12:52:46 +0000
Subject: passing db persistent connections through different pages
Groups: php.db 
Request: Send a blank email to php-db+get-9690@lists.php.net to get a copy of this message
hello, I've this silly question: how can I pass a db persistent connection from a script to another? (it seems there's no way: but what's the use then of them?) eg, I tryed this 2 scripts (with Oracle 8.1.6) <?php set_time_limit(0); $conn = ociplogon('user','pass','testdb'); echo "Server Version: " . OCIServerVersion($conn); echo "<br><br> $conn"; ?> <?php echo "<br><br> $conn"; OCILogOff($conn); ?> this works if both are on the same page, but I see no way to pass $conn (with the associated info) to another one; I've read on http://marc.theaimsgroup.com/?l=php-db&m=97024385511984&w=2 __________________________________ > I'd like to know if it is possible to create a session variable for a > database to get a persistent database connection. I've got > lots of updates If you think passing persistent connection between pages as other vars, answer is no. __________________________________ there's really no way to do this? thank you, bye, --Giuse Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com

« previous php.db (#9690) next »