Calling the undefined ibase_connect () function in Codeigniter

I cannot connect to a local bank in firebird.

Since I included the following extensions in php.ini, but did not get any results.

extension = php_interbase.dll

extension = "interbase.so"

extension = php_pdo_firebird.dll

I also did interbase.so upload the file and copy it to the folder:

/ Opt / lampp / Lib / PHP / extenders / non-debugging-non-ZTS-20131226 /

I use:

  • XAMPP 5.6.8 / PHP 5.6.8 (64 bit)
  • Linux 14.04 LTS (64 bit)

My database.php file

$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'SYSDBA', 'password' => 'masterkey', 'database' => 'localhost://home//ronald//fire//DEMO.GDB', // 'port' => '3050', 'dbdriver' => 'ibase', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => TRUE, 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE ); 

Remembering that the problem is not in my connection string, since I tried options like:

  • 'database' => 'localhost: //home//ronald//fire//DEMO.GDB'
  • 'database' => 'localhost: /home/ronald/fire/DEMO.GDB'
  • 'database' => '/home/ronald/fire/DEMO.GDB'
  • 'database' => '//home//ronald//fire//DEMO.GDB'

Error: enter image description here

Thank you for your help!

EDIT

Assuming "@Daniel Waghorn" launched a page with phpinfo ()

The result can be seen in: http://codepen.io/anon/pen/LVdzRy?editors=100

I took get_loaded_extensions (false) to execute the following function

The function returns the loaded modules to me. And as you can see, the modules for Firebird are not loaded.

  • Core
  • the date
  • EREG
  • Libxml
  • Openssl
  • PCRE
  • sqlite3
  • Zlib
  • BCMath
  • Bz2
  • the calendar
  • CType
  • curl
  • dBA
  • house
  • hash
  • Fileinfo
  • filter
  • FTP
  • G.D.
  • Gettext
  • SPL
  • Iconv
  • session
  • airport
  • Json
  • LDAP
  • MBstring
  • Mcrypt
  • Standard
  • mysqlnd
  • Mysql
  • MySQL
  • PDO
  • PDO_MySQL
  • Pdo_Pgsql
  • Pdo_sqlite
  • Phar
  • Posix
  • Reflection
  • IMAP
  • shmop
  • Simplexml
  • soap
  • sockets
  • EXIF
  • sybase_ct
  • sysvsem
  • sysvshm
  • tokenizer
  • Wddx
  • XML
  • Xmlreader
  • XMLRPC
  • Xmlwriter
  • XSL
  • lightning
  • apache2handler
  • PgSQL
  • Mhash

Now, how can I load Firebird modules to run using XAMPP START?

+6
source share
2 answers

I suggest everyone use Easyphp Devserver ( www.easyphp.org ) instead of wamp or xampp specifically to connect to the Firebird database (ibase_connect or pdo).

0
source

Just copy fbclient.dll and gds32.dll to the apache / bin / folder and restart apache.

This work is for me after several hours of research.

0
source

All Articles