Hy! I'm trying to use oci on windows, I found some linked issues, but I don't have any xampp, or apache, or anything, I'm only using the php built-in server. I enabled the oci extension in the php.ini file, but it does not work. I was looking for answer. I don't need any oracle database, there is a database, I only want to connect it with my app. I have the error above every time, when I'm trying to run any php command. So it does not work. The missing dll file is there, so I don't understand, why is it missing. I installed pear, and pecl, but pecl installations need openssl, openssl needs visualC and some other things... is there any other solution? Even though why does it not find that dll, if it's there... I downloaded Oracle Instant client and Oracle SDK, I unzipped it, set the environmental variables, but nothing changed... Please, help!
CodePudding user response:
You need to download the correct
oci8_19.dll
if not already there and placed it underyour_xampp_directory\php\ext
folder.Enable/add this extension in your php.ini file.
Add environment variable path for PHP.
Then, you also need Oracle Instant client to load/run this properly. Download it from
here
. Be mindful aboutx86
orx64
architecture of your windows machine and download the one that matches your machine specs.Add this Oracle instant client path too in your environment variable.
Restart command prompt and type
php -v
. Voila! It runs smoothly and shows you just the PHP version, which means your oci extension loaded properly.