PHP Oracle Connection problem

Discussion in 'PHP' started by rexicon, Aug 3, 2009.

  1. #1
    Hi,

    Im new to php. I'm using oracle database and i've got this error when using the function oci_connect()

    Fatal error: Call to undefined function oci_connect()

    Im using xampp version 1.7.1.

    Can anyone help me to find a solution to this problem.

    Thanks.

    Rexicon.
     
    rexicon, Aug 3, 2009 IP
  2. CodeSpire

    CodeSpire Guest

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you configured the Oracle extension with php.ini?

    
    
    extension=php_oci8.dll
    
    
    Code (markup):
    Add that to php.ini, and then restart your server.
     
    CodeSpire, Aug 3, 2009 IP
  3. rexicon

    rexicon Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Codespire,

    I already done that but it's getting the same problem. What else do you think is problem?
     
    rexicon, Aug 3, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Make a page with the following code:

    phpinfo();
    PHP:
    Check to make sure that it says "oracle" or "oci" somewhere in that page. If it doesn't, you haven't specified the correct path to the DLL or you are editing the wrong php.ini (that file also specifies the correct php.ini that you should edit)
     
    premiumscripts, Aug 3, 2009 IP