PHP with Oracle newbie

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Mar 15, 2018 11:00 pm

Thu Mar 15, 2018 11:31 pm


I am good with ASP 3.0, trying to learn up PHP.
First thing I need to do is connect PHP to existing Oracle database.

The webserver is running on Windows Server 2012 with IIS installed
I installed PHP, test run okay

Now I am trying to connect the PHP to oracle database, but it shows the fatal error below: and I don't know how to fix it

Fatal error: Call to undefined function oci_connect() in C:\inetpub\wwwroot\index.php on line 10 E_ERROR Error in file »index.php« at line 10: Call to undefined function oci_connect()

What the team using is and in web.config it is using as below, how am I going to do that under PHP?

<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
<add name="hrdb" connectionString="Provider=MSDAORA;PASSWORD=myPassword;User ID=hrSystem;Data Source=HRDB"/>

php-forum Fan User
php-forum Fan User
Posts: 570
Joined: Fri Apr 01, 2016 2:18 am

Fri Mar 16, 2018 1:36 am

You have to compile PHP with the according driver like

Post Reply