Reputation: 51
I've been trying to connect the oracle SQL Database for my PHP Project. I have followed along the steps listed online as well as tried following along with this tutorial.
I have tried:
This still showed an "oci_connect()" could not be recognized.
Versions
OS Version: Windows 10 Pro
XAMPP: x64
PHP version: 7.2.12 Architecture: x86
Instant Client: x64 (Tried with x86 as well but no difference)
However, I have not been able to troubleshoot and despite the above attempts the "oci_connect()" function doesn't get recognized. Any help or guidance will be appreciated.
Fatal error: Uncaught Error: Call to undefined function oci_connect() in C:\xampp\htdocs\test\scriptdemo.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\test\scriptdemo.php on line 7
Upvotes: 0
Views: 188
Reputation: 208
the xampp runs on x86 or x64 version? an the oracle client should be in sync with xampp - same version!
Upvotes: 1