PHP connects to Oracle, prompting call to undefined function ora_logon (), how to resolve
Source: Internet
Author: User
PHP connects to Oracle, prompting call to undefined function Ora_logon ()
A small piece of code written according to the data
if ($conn =ora_logon ("Hr@tnsname", "HR"))
{
echo "SUCCESS! Connected to database\n ";
}
Else
{
echo "Failed:-( Could not connect to database\n ";}
Ora_logoff ($conn);
Phpinfo ();
?>
Hint Ora_logon function for definition, why?
I've got Extension=php_oci8.dll's semicolon removed from the php.ini.
And put Php_oci8.dll into the windows/system32 inside.
------Solution--------------------
Not that you can install Oracle's extended ...
And Ora_logon belonged to CXIII. Oracle functions (deprecated)
You have to use CVII. Oracle functions
http://cn.php.net/manual/zh/ref.oci8.php
------Solution--------------------
Did your config your PHP with Oracle while installing it? Please check below
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.