Problem with oci_connect()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem with oci_connect()

Postby Naimathullah » 14. September 2012 21:26

I have installed XAMPP 1.8 on windows 7. I get this error: Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\tools\cOracle.php on line 33. Did a research online and tried everything for last 2 days and still doesn't work.

I did following things:
Uncommented extension=php_oci8_11g.dll in php.ini
Added C:\instantclient_11_1;
Checked extension folder has oci8.dll file

Please advise me what changes I have to do to make it work.
Naimathullah
 
Posts: 3
Joined: 14. September 2012 21:16
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Problem with oci_connect()

Postby Naimathullah » 17. September 2012 08:04

Can anyone help me to solve this problem.
Naimathullah
 
Posts: 3
Joined: 14. September 2012 21:16
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Problem with oci_connect()

Postby JonB » 17. September 2012 17:51

My understanding is that you need to use the Instant Client with PDO methods. The old methods are deprecated.

The proper extension is: php_pdo_oci.dll

Code: Select all
;extension=php_pdo_oci.dll


http://php.net/manual/en/ref.pdo-oci.php

I have no way to test this, as I don't 'do' Oracle.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Problem with oci_connect()

Postby Naimathullah » 18. September 2012 01:49

Tried but I didn't work.
Naimathullah
 
Posts: 3
Joined: 14. September 2012 21:16
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Problem with oci_connect()

Postby mpapec » 22. September 2012 08:48

Naimathullah wrote:I have installed XAMPP 1.8 on windows 7. I get this error: Fatal error: Call to undefined function oci_connect() in C:\xampp\htdocs\tools\cOracle.php on line 33. Did a research online and tried everything for last 2 days and still doesn't work.

I did following things:
Uncommented extension=php_oci8_11g.dll in php.ini
Added C:\instantclient_11_1;
Checked extension folder has oci8.dll file

Please advise me what changes I have to do to make it work.


You need C:\instantclient_11_1 in your enviroment path (also check phpinfo() for "oci8" section)
mpapec
 
Posts: 3
Joined: 22. September 2012 07:38
XAMPP Version: 1.8.3-1
Operating System: windows


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 29 guests