4

i'm want connect PHP to Oracle Database 12c, i'm already try in this video https://www.youtube.com/watch?v=KJme5JMxKeo

error message : Call to undefined function oci_connect()

i'm confused why can't connect to ORACLE DATABASE 12c :(

Maestro Vladimir
  • 1,186
  • 4
  • 18
  • 38

3 Answers3

8

you are very close.

  1. Add oci.dll, oraociei12.dll, and oraons.dll from C:\instantclient_12_1 to xampp/apache/bin folder. Replace the existing ones.

  2. Restart the Apache

N.B: Make sure that your PATH environment variable are set to this folder "C:\instantclient_12_1".

Manyalo
  • 81
  • 1
  • 5
2

Check whether command line PHP works. See if there are any log errors. Make sure you have the right OCI8 DLL. Triple check you have 32bit Oracle Instant Client and that it occurs first in PATH. If you have other Oracle libraries installed then your webserver may be finding them first: fix this.

Community
  • 1
  • 1
Christopher Jones
  • 9,449
  • 3
  • 24
  • 48
0

i have the exact same problem and fix it in the php.ini file by uncommenting this

extension_dir = "./" "remove semicolon"

mustafa-naeem
  • 37
  • 1
  • 10