Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 16th, 2005, 08:57 AM
Authorized User
Join Date: Dec 2005
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Connecting to Oracle with PHP

I'm accessing an Oracle 10g database from within PHP 5.0. I can do this successfully as long as I use the oci_new_connect() function. I suspect (but don't really know for sure) that it's not efficient to always force a new connection. If I try to use oci_connect(), I can connect about three times, after that PHP will hang and timeout on the oci_connect() line. I then won't be able to connect using either function until I reboot my development computer. I always implicitly close the connection with oci_close(), so that's not the issue.

So I have two questions:
1) Is it in fact inefficient to always use oci_new_connect()?
2) If so, what do I have to do to make oci_connect() work consistently?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to oracle from PHP paragajoshi PHP Databases 2 November 16th, 2011 05:26 PM
Error in Connecting to Oracle vikasagarwal1984 ASP.NET 1.0 and 1.1 Basics 1 October 1st, 2006 01:03 PM
Connecting to Oracle without Oracle Client mahaveerar VB Databases Basics 0 February 22nd, 2005 05:18 PM
Connecting to Oracle without Oracle Client mahaveerar Excel VBA 0 February 22nd, 2005 03:55 PM
connecting to oracle amcp2002 Java Databases 2 September 20th, 2003 05:17 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.