RE: [PHP] error connecting to oracle.
| From: | Ford, Mike [LSS] | Date: | Mon, 28 Oct 2002 11:24:28 +0000 |
| Subject: | RE: [PHP] error connecting to oracle. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121677@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Faisal Abdullah [mailto:faisal@magnifix.com.my]
> Sent: 28 October 2002 09:51
> To: Subodh Gupta; php-general@lists.php.net
> Subject: RE: [PHP] error connecting to oracle.
>
>> -----Original Message-----
>> From: Subodh Gupta [mailto:Subodh.Gupta@seepz.tcs.co.in]
>> Sent: Monday, October 28, 2002 5:18 PM
>>
>> I get the following error while trying to connect to oracle.
>> Please help
>> me.
>>
>> Fatal error: Call to undefined function: ora_logon() in c:\program
>> files\apache group\apache\htdocs\one.php on line 5>
>> "undefined function" means PHP doesn't know where to get the
>> function from.
>
> You probably didn't configure oci_8 libraries correctly.
> Try phpinfo(), and see under the configuration.
> Check whether oci8 is available.
Look out! You've got your Oracle libraries in a twist. The oci8 library supports the OCI*
functions; the oracle library supports the ora_* functions. OCI is generally considered to be a
better interface, and should probably be used by preference with Oracle version 7 and upwards.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211