Reputation: 1693
I have following code
$conn = oci_connect('user', 'password', 'localhost/XE');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
I can not connect from my xamp but on live server it works fine
error message is
Can't find libclntsh.so.
what i have wrong in my connection ?
Upvotes: 1
Views: 77
Reputation: 1693
issue was with php.ini file it needed enable
extension=oci8.so
thank you to all
Upvotes: 1