Results 1 to 6 of 6

Thread: Fatal Error: Call to undefined function ocilogon ()

  1. #1
    Join Date
    Oct 2008
    Posts
    75

    Fatal Error: Call to undefined function ocilogon ()

    Hello,

    when I try to connect to Oracle database from a PHP page I Get the Followinf Error message :

    when I use Ora_Logon (), I have this message
    Fatal error: Call to undefined function Ora_Logon ()

    when I use ocilogon (), I have this message
    Fatal error: Call to undefined function ocilogon ()

    when I use oci_connect (), I have this message
    Fatal error: Call to undefined function oci_connect ()

    in short I use any function I have this message Call to undefined ....
    please help me Solve this problem thank you in Advance for helping me
    best regards

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Fatal Error: Call to undefined function ocilogon ()

    For those on a UNIX/Linux system getting this error you'll need to recompile PHP with the options --with-oracle=$ORACLE_HOME --with-oci8=$ORACLE_HOME, where $ORACLE_HOME is the home directory for oracle. PHP does not ship with the oracle modules installed by default, they must be enabled manually during compile time on UNIX, or as Ivan pointed out in php.ini on windows.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Fatal Error: Call to undefined function ocilogon ()

    You should use --with-oci8 if you want to use the oci8 functions. In that phpinfo() output there is no oci8 enabled..

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Fatal Error: Call to undefined function ocilogon ()

    Use the phpinfo() function to check that the same php is being used in
    Apache and on the command line.Make sure LD_LIBRARY_PATH contains $ORACLE_HOME/lib Relink with --with-oci8 Another suggestion is upgrade PHP to 4.4 and manually get the new refactored oci8 drivers. After you upgrade to something like: pear install oci8-beta to get the new drivers.

  5. #5
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Fatal Error: Call to undefined function ocilogon ()

    The error message is telling you that it was unable to find the function named OCILogon() that you called. Ordinarily, that would be probably be in an "include file", a separate file that must be on your server and that you must reference in this script with something like this:

  6. #6
    Join Date
    Oct 2008
    Posts
    75

    Re: Fatal Error: Call to undefined function ocilogon ()

    I added these two lines in my php.ini Code:

    extension = php_oci8.dll
    extension = php_oracle.dll


    I played this very minimalist script: Code:
    <? php
    $ conn = ora_logon ( "user @ TNSNAME", "pass");
    >

    And it works very well, finally I got a message telling me that the connection could not be done .... So if it does not work, check whether the two dll files are present in the / ext of your php engine. and they are very busy with a phpinfo (). I had a case once where I had two engines installed php on my computer ... php.ini and who was responsible was not good.

Similar Threads

  1. Replies: 3
    Last Post: 18-11-2011, 07:25 PM
  2. Replies: 4
    Last Post: 28-01-2010, 09:35 PM
  3. Fatal Error : Call to undefined function simplexml_load_file()
    By Ananias in forum Software Development
    Replies: 3
    Last Post: 02-06-2009, 05:43 PM
  4. PLEASE HELP!!! Error DLL Function call crashed
    By nhet in forum Windows XP Support
    Replies: 2
    Last Post: 13-10-2008, 01:33 AM
  5. Fatal error: Call to undefined function: curl_init() in
    By Miltongomes in forum Software Development
    Replies: 3
    Last Post: 04-08-2008, 01:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,036,246.34417 seconds with 16 queries