Hello,
I want to connect to my Database intebase but i find always this error :

''Fatal error: Call to undefined function ibase_connect() in C:\wamp\www\Projet Orthalis.Rabab\membre.php on line 499''

but i think my code source is correct :

<?php function connect()
{
$conn = ibase_connect("C:/Orqual/Orthalis/database/credo.gdb", "SYSDBA", "masterkey");
return $conn;
}
......

pliz any one here know what's a problem???

    The error "Call to undefined function ibase_connect()" means that the function does not exist.

    Check your PHP.INI -

    ";extension=php_interbase.dll"

    There should not be a semi-colon in front of it, you will want the interbase support.

    edit:

    Please be sure not to double post, if someone can help you they will.

      Hello,
      i verify in a file php.ini and i find ";extension = php_interbase.dll"

      i recompile and i have always this problem!!!

      tkx
      Rabab

        You need to remove the semicolon. If you truly have:

        ;extension = php_interbase.dll

        you want:

        extension = php_interbase.dll

          To elaborate, the semicolon in a .ini file is used to denote comments. In other words, having a semicolon in front of that extension= line is like commenting out PHP code with '//' - it's never executed.

            Hello,

            i paste the gds32.dll in my c:\windows\system32 folder.

            i also change the php.ini:
            magic_quotes_sybase = On

            and i paste this line in my php.ini and make sure that php_interbase.dll is inside the extensions folder:
            ; Directory in which the loadable extensions (modules) reside.
            extension_dir = C:\apachefriends\xampp\php\extensions\
            extension=php_interbase.dll

            What seems to be the problem. Please help me thanks

            here is my code:
            $host = 'DELL01:C:/Orqual/Orthalis/database/credo.gdb';
            $username = 'SYSDBA';
            $password ='masterkey';
            $dbh = ibase_connect($host, $username, $password);

              rabab.orthalis wrote:

              i paste the gds32.dll in my c:\windows\system32 folder.

              PHP-related .dll files (or any others, for that matter, other than .php scripts) should never be moved outside of the main PHP installation folder. Delete these extraneous copies.

              rabab.orthalis wrote:

              and i paste this line in my php.ini

              You shouldn't have needed to paste anything; there should already be a "Dynamic Extensions" section in your php.ini file with many extension= lines (unless you didn't begin with a default .ini file provided with PHP).

              Next, you should verify that PHP is correctly parsing the .ini file. Make some change (such as changing display_errors to On) in your php.ini file, restart Apache, and do a phpinfo(); if PHP doesn't show the directive's newly changed value, then PHP isn't reading your .ini file and that's the first problem you should tackle.

              Also, have you verified that the main PHP directory was added to your system's PATH environment variable? Easy way to check this is to open a command prompt (Start -> Run -> cmd) and type 'path' (without the quotes) - "c:\php" should be somewhere in that list of directories.

                tkx bradgrafelman
                i resoved this problem, and a problem was that the php.ini file was not available to PHP, so i set the PHPRC environment variable:

                Go to Control Panel and open the System icon (Start -> Program -> Control Panel -> System)

                Go to the Advanced tab

                Click on the 'Environment Variables' button

                Look into the 'System variables' pane

                Click on 'New' and enter 'PHPRC' as the variable name and the directory where php.ini is located as the variable value (e.g. C:\php)

                Press OK and restart your computer

                So a problem is resolved know;

                  2 years later

                  hi everybody. problem is very closed. chose true php.ini file because php.ini file is under php folder under. wamp short link is dont correct. you goto php folder look php.ini file and change ;extension=php_interbase.dll to extension=php_interbase.dll

                    Write a Reply...