Connect to remote oracle database from php script
Posted: Thu Sep 03, 2009 5:56 am
hi,
i need to connect to a remote oracle database from a PHP script.
Do i need to install any drivers or packages to connect with the remote database?
when i use below code
<?php
if ($c = oci_connect("username", "passwd", "remote server IP")) {
echo "Successfully connected to Oracle.";
oci_close($c);
} else {
$err = oci_error();
echo "Oracle Connect Error " . $err['text'];
}
?>
it gives below error
"PHP Fatal error: Call to undefined function: oci_connect() "
I'm wondering whether i need to install any drivers
pls advice someone
thanks
i need to connect to a remote oracle database from a PHP script.
Do i need to install any drivers or packages to connect with the remote database?
when i use below code
<?php
if ($c = oci_connect("username", "passwd", "remote server IP")) {
echo "Successfully connected to Oracle.";
oci_close($c);
} else {
$err = oci_error();
echo "Oracle Connect Error " . $err['text'];
}
?>
it gives below error
"PHP Fatal error: Call to undefined function: oci_connect() "
I'm wondering whether i need to install any drivers
pls advice someone
thanks