How do I connect CodeIgniter in oracle using XAMPP? |
So I have a school project in database. We need to create a database for a company my project was connected to MySQL but then my teacher says we need to use Oracle. So I tried to look for an answer but I fail. I tried to find old topics here but it doesn't work. First I tried to connect xampp in oracle by removing the semicolon (
![]() "PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_oci8.dll' - %1 is not a valid Win32 application" I'm running it in windows 8.1 64bit I still haven't tried adding the environmental path since I don't know where. Here's my database.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Hope fully you guys will help me. Thanks!
Try alternative php_ocix.dll, I had impression that you have installed incorrect version of the Oracle driver. These DLLs are built with
VC dependencies.
It's been a while since I've connected PHP to Oracle (or had Windows as my dev environment) but try installing oci8 via PECL and uncomment the oci8 extension in php.ini corresponding to your version of Oracle as detailed in http://php.net/manual/en/oci8.installation.php.
To answer your question within your database.php file, fill in the username and password that you use to connect to your Oracle instance. If your school provided you with a remote Oracle database to connect to, you should use the credentials they gave you. If you installed Oracle yourself, it should have asked you to set up a username and password during installation. You should also remove the single quotes around $tnsname in this line since PHP would treat that as a string: $db['default']['hostname'] = '$tnsname';
I already solved the problem. I downloaded the install client for the oracle 11g, and add some new environment paths and removed the ; and it works! Thanks!
(02-23-2015, 06:27 AM)laklaker Wrote: I already solved the problem. I downloaded the install client for the oracle 11g, and add some new environment paths and removed the ; and it works! Thanks! Can you explain full procedure ? I want to connect oracle db19C from Codeigniter application using XAMPP but I failed. Please help me. |
Welcome Guest, Not a member yet? Register Sign In |