3

I want to use php oci8 function , but I got this error

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8.dll' - The specified module could not be found. (C:\xampp\apache\bin\httpd.exe -d C:/xampp/apache) 

I have follow all this step

How to enable Oracle Connection to PHP on XAMPP

  1. Install XAMPP 1.7.3 on your Windows. (Please remove the old version of XAMPP and please delete C:\xampp BEFORE installing the new version of XAMPP).
  2. Extract InstantClient to C:\instantclient_11_2 folder.
  3. Open system setting at Start Menu > My Computer(right click on the icon) > Select Properties > Advanced Tabs > Environment Variables.
  4. Add to ‘System Variables’ by clicking ‘New’ button and insert the following values: a. Variable Name : PATH b. Variable Value : c:\instantclient_11_2
  5. Click OK to accept new modification.
  6. Open C:\xampp\php\php.ini by using notepad.
  7. Find string oci8 and remove the ; symbol at the beginning of the string line.
  8. Save and Exit.
  9. Restart you laptop/pc to accept new modification on xampp.

I setup at Window Server 2008 R2 64bit.

Can anyone help?

3
  • You have to update your environment variable PATH in System Variableby adding C:\instantclient_11_2 and not by creating a new one. You should only restart 'XAMPP' and not restarting your machine Commented Sep 9, 2015 at 8:24
  • I have done that by same result Commented Sep 9, 2015 at 15:15
  • try this : create a new environment variable ORACLE_HOME = PATH_TO_INSTANTCLIENT, and restart your XAMPP Commented Sep 9, 2015 at 15:29

2 Answers 2

1

Have you ever try to copy the files orannzsbb11.dll , oci.dll and oraociei11.dll to c:\windows\system32 ? try it. It worked for me :)

Sign up to request clarification or add additional context in comments.

Comments

0

I had to face the same issue.But as this link suggests OCIEnvNlsCreate() failed. When i try to connect my oracle database in php

I copy paste everything inside instantclient to System32 folder.

this way worked for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.