


- #INSTALL INTERBASE EXTENSION FOR PHP HOW TO#
- #INSTALL INTERBASE EXTENSION FOR PHP INSTALL#
- #INSTALL INTERBASE EXTENSION FOR PHP SOFTWARE#
- #INSTALL INTERBASE EXTENSION FOR PHP WINDOWS 7#
- #INSTALL INTERBASE EXTENSION FOR PHP DOWNLOAD#
With the first method you are sure you'll always get the very latest version of the script, with the second method the process is faster since you'll use a local image.įor example, here some Dockerfiles that install the GD and xdebug PHP extensions: Downloading the script on the fly With the Dockerfile
#INSTALL INTERBASE EXTENSION FOR PHP DOWNLOAD#
You have two ways to use this script within your Dockerfiles: you can download the script on the fly, or you can grab it from the mlocati/php-extension-installer Docker Hub image. See also the notes in the Special requirements section. Supported docker images are all the Alpine/Debian versions, except for PHP 5.5 where we only support Debian 8 (jessie) (that is, php:5.5, php:5.5-apache, php:5.5-cli, php:5.5-fpm, php:5.5-zts). The script will install all the required APT/APK packages at the end of the script execution, the no-more needed packages will be removed so that the image will be much smaller. This repository contains a script that can be used to easily install a PHP extension inside the official PHP Docker images. I believe ibase_connect is in the php_interbase.dll, but since both systems now have identical operating systems, modules, directory structures for Apache and php, and configuration files, it is a puzzlement.Easy installation of PHP extensions in official PHP Docker images It would appear there is a missing DLL, but I have no clue as to what it could be.
#INSTALL INTERBASE EXTENSION FOR PHP HOW TO#
So, the problem boils down to php 5.3.5 does NOT like the "extension=php_interbase.dll" line for whatever reason and there are no new instructions for how to get InterBase to work with 5.3.5, and php 5.0x accepts the line but does not implement it on the production system but does on the development system, even though both php.ini files are identical. php_interbase.dll is in C:\php\extensions, and gds32.dll is in C:\php. However, we are back to where php gives the error that ibase_connect is undefined. Apache 2.2 now starts fine with the line "extension=php_interbase.dll" in php.ini and php works fine. Next I deleted the C:\php directory from the production system and copied the working PHP 5.0x directory from our development system (where it was working fine) to the production system and named it C:\php. Disable that line, and Apache 2.2 runs fine. Next I edited the php.ini file and added the line "extension=php_interbase.dll" at the end of the file. PHP was not "installed", it was simply extracted from the. That worked fine, and php scripts were processed as expected. I then put PHP 5.3.5 on the production system and enabled it for PHP.
#INSTALL INTERBASE EXTENSION FOR PHP WINDOWS 7#
Both systems are running Windows 7 Professional. The version of InterBase is the same on both the production and the development systems. The nf files are identical on both the production and development systems. I installed Apache 2.2 on our production system. We thought our problems were solved and we had learned how to do it. I have gotten Apache 2.2 and PHP 5.0x to work with InterBase on our development system by uninstalled PHP 5.3.4 and pointing Apache 2.2 to PHP 5.0x that we have been using with PhpED. Where line 111 is: $CDB=ibase_connect('127.0.0.1:C:\DBS\customer.gdb', $DBUsername, $DBPassword) Īgain, using PHPEd on this same system, with the embedded PHP 5.3 in PHPEd, mtb.php works fine.
#INSTALL INTERBASE EXTENSION FOR PHP SOFTWARE#
However, PHP still does not acknowledge InterBase and gives the error:įatal error: Call to undefined function ibase_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\mtb.php on line 111 with-interbase=C:/Program Files (x86)/Borland/interbase6Īpache now starts and runs okay. With the following lines installed at the end of 5.3.4's php.ini file: The only other possible thing I have found so far is the line "-with-interbase=C:/Program Files (x86)/Borland/interbase6" is supposed to go into php.ini, so I put it in. Commenting out "extension=php_interbase.dll" in php.ini allows Apache to run normally. So, I moved gds32.dll and php_interbase.dll into Windows\system32 and put gds32.dll into PHP and php_interbase.dll into PHP\ext. When I inserted the line "extension=php_interbase.dll" at the end of 5.3.4's php.ini, Apache fails to start. so it would appear InterBase should still be supported. PHP 5.3.4 does not have the line "extension=php_interbase.dll" in php.ini, but does include other lines for InterBase, including "ibase.allow_persistent = 1", etc. On the same system, I installed Apache 2.2 and PHP 5.3.4. That done, everything worked fine and I was able to write and test some PHP scripts using the InterBase server installed on that machine. I have PHPEd installed on my development system, and have enabled InterBase in PHPEd's php.ini file by removing the semicolon on the line "extension=php_interbase.dll".

I have found a lot of conflicting advice on how to get PHP to integrate with InterBase.
