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:
- Installing appropriate Instant Client version 12.1 and adding to system PATH
- Un-commented the line relating the oracle database in php.ini
- Downloading and replacing the DLL files under xampp/php/ext with the ones from PECL
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