Jump to content
xisto Community

Connecting Php With Oracle Database

Recommended Posts

i need to connect oracle with php ..now me using oracle 10g can any one give me the solution

First question, Are you using PHP over Windows or Linux?

if your answer is Windows, the best and easy way will be ODBC, but you reach the basic point if you can communicate with ODBC. now the drivers are propietary from Oracle so you need to install the comminication package first in order to enable ODBC, you can try by open Excell and make a Data>Get External Data>New Database Query and follow the wizard. Now if you can do this and you still can't connect using PHP the next question is Did you compile PHP including the Oracle Parameter? if not Voila that is the solution. you need to go back an recompile PHP including the Oracle driver for PHP .

if your answer was Linux you need to get the drivers from Oracle to connect linux or the Client software from Oracle for Linux, and the recompile the PHP in order to get the connection with Oracle.

There is a very good help on PHP.net about recompile and select the options you need to do this.

Good Luck.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.