I just installed Zend Development Environment which installed PHP 4.2.2. Everything ran fine under IIS/XP. Then tried to get PHP working with Firebird which I have been using for about a

I did the following:

  1. Set extension_dir = extension_dir="C:\PROGRA~1\Zend\lib\php_ext" -- actually set my Zend install.

  2. Uncommented the extension=php_interbase.dll in PHP.ini file.

  3. Added magic_quotes_sybase = On

  4. Rebooted.

  5. Run a php script in Zend with the following statement:

$connection = ibase_connect("C:\testdata\TEST.GDB", "SYSDBA", "masterkey");

Get this error message:

"Call to undefined function: ibase_connect()"

I've read the manual which states that says:

Note: Full support for InterBase 6 was added in PHP 4.0.

I note that the phoenix site uses php, but not sure if anyone is using PHP IIS and Firebird.

I'm a long time Delphi programmer that has been frustrated with its Web development tools and have been impressed by PHP and Zend. If I can get to my Firebird databases I'll be a happy PHP programmer!

Thanks for any help.

    Hi,

    look if your extensiondir contains the php_ibase.dll or the like.
    The errormsg you get tells that php wasn't able to load the interbase-extension.
    Try to run your script on the commanline, like

    php.exe myscript.php

    and look what happens. Your extensionpath seems a bit strange with the tilde in it.

    Best regards,

    King Louie

      The tilde in windows is used as the short file name (8.3), it was set by the Zend installation. It can be used interchangeably with the long file name.

      Anyway I tried your suggestion and ran php.exe from a cmd window and got an error message saying "..php.exe is not a valid Win32 application". I'm not sure if zend has installed a version that is actually a dll or what.

      Have you successfully run IIS/PHP/Interbase?

        Don't reply yet, now Zend complains about the php.exe. Zend crashed yesterday and I had to reboot and it looks like php.exe got zapped, its got a length of 0. I will reinstall and try your suggestion again.

        Thanks!

          Hi,

          yes, we're running IIS / PHP / Firebird on a W2K-server. Only Problem we got was with the ISAPI-PHP-DLL which crashed repeatedly, so we are using the CGI-version - without major problems yet.
          Your report sounds like a really dread install - I haven't any experience with Zend, but maybe you get done with naked PHP?
          Anyway, let me know if the problem remains.
          Best regards,

          King Louie

            Thanks for the tip. I had already been running phpinfo, but had never seen anything about Interase until I ran it outside of Zend, then I saw the Interbase section. So I changed IIS to point to PHP 4.3 and use the php4isapi.dll, but when I restarted it complained it could not find the php_interbase.dll even though it is exactly where it complains it cannot find it. I tried changing / to \ and copied the php_interbase.dll to the windows\system32 and then to where the php_interbase.dll resides. Still can't find it. I've seen posts where an older dll has been installed, but I got the absolute latest from php.net, dated 2/15/2003, but progress has been made!

            I'm going to try php as a cgi next like you have done. Just won't have time until tomorrow. Thanks much for you help!

            I come from a Delphi background so am used to an integrated debugger, that's why I tried Zend. Its very nice, maybe they can resolve my interbase problem.

              Write a Reply...