Click on the banner to learn about and purchase my database training on Azure

Configuring PHP to Connect to the Firebird (Interbase) Database

Views: 16.731 views
Reading Time: 2 minutes

Staff,
Good evening.

After having several problems setting up a Windows PHP + Firebird environment, I decided to create this post to help other colleagues with the same problem and eliminate the error message once and for all:

Fatal error: Call to undefined function ibase_connect ()

Performed the setup

  1. Download the XAMPP 1.8.2 VC9 and extract the files to a local directory, preferably C: \ xampp
  2. Run the file setup_xamp.bat to set the variables
  3. Edit the file php.ini (C: \ xampp \ php) and look for php_interbase.dll. Uncomment this line by removing the “;” at the beginning of the line
  4. Download the Firebird 2.5.3 database and install on your computer
  5. Copy the php_interbase.dll file from your php \ ext directory to the C: \ Windows \ System32 directory.
  6. Copy the libeay32.dll and ssleay32.dll files from your php directory to the C: \ Windows \ System32 directory.
  7. Download of this file and extract the DLLs in the C: \ Windows and C: \ Windows \ System32 directories (or copy C: \ firebird \ bin \ fbclient.dll to the above directories and copy this file again, now named gds32.dll)
  8. Start Xampp Control (xampp-control.exe) and start the Apache service.

Ready, PHP + Apache + Firebird installed and integrated! Now just make PHP connect to the database:

php firebird interbase connection can't connect does not connect how to configure connect Fatal error: Call to undefined function ibase_connect ()

php firebird interbase connection can't connect does not connect how to configure connect Fatal error: Call to undefined function ibase_connect ()

And that's it!
See you.