Jump to content

Connecting to Oracle 10g using PHP


Recommended Posts

Hey All,

 

This for the first time I want to connect Oracle DB (10g) using PHP. So far I have been doing it using Perl

 

What are the pre-requisites - Like which version of PHP, any driver etc. My Oracle DB is located remotely.

 

To start off with I want to fetch some rows on Windows and then move to Unix. Hence I would also need the prequisites for Unix as well (Solaris).

 

Link to comment
Share on other sites

My next project will involve using an Oracle DB with PHP instead of the usual MySQL.

 

I've read a little about PHP and Oracle and so far I have done the following.

 

1) Installed Oracle 10g express

2) Downloaded Oracle Instant Client

 

As far as i'm aware, i need to do the following;

1) Add the path of the Instant Client to the windows PATH

2) uncomment the OCI8 library in the php.ini file under extensions.

 

and hopefully all should be fine!

 

is there anything else I will need to do to configure PHP with Oracle?

 

 

I'm going to go via http://www.oracle.com/technology/pub/notes/technote_php_instant.html

 

...and hope for the best!

 

Link to comment
Share on other sites

well i got oracle working with php using the above instructions.

 

install oracle on your local machine if needed

download instant client

add the instant client directory to windows path

enable oci8 in the php.ini file

 

...and you should be good to go

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.