Connect PHP to Interbase: "undefined function ibase_connect()"

c11ada picture c11ada · Jul 15, 2011 · Viewed 12.3k times · Source

hey all im trying to connect my php application to an interbase database and i get the following error

Fatal error: Call to undefined function ibase_connect() in C:\xampp\htdocs\Phase\includes\config.php on line 11

the line the causes the error is as follows.

if(!ibase_connect($config['DBHost'] .":". $config['DBName'], $config['DBUser'], $config['DBPass'])) {
    echo "Connection Error: ". ibase_errmsg();

im really new to the php world, can someone please explain what im supposed to do.

UPDATE

Sorry I forgot to mention im using a windows 64bit machine if that helps

I get the following when i do the get_loaded_extensions() function

[0] => Core [1] => bcmath [2] => calendar [3] => com_dotnet [4] => ctype [5] => date [6] => ereg [7] => filter [8] => ftp [9] => hash [10] => iconv [11] => json [12] => mcrypt [13] => SPL [14] => odbc [15] => pcre [16] => Reflection [17] => session [18] => standard [19] => mysqlnd [20] => tokenizer [21] => zip [22] => zlib [23] => libxml [24] => dom [25] => PDO [26] => bz2 [27] => SimpleXML [28] => wddx [29] => xml [30] => xmlreader [31] => xmlwriter [32] => apache2handler [33] => Phar [34] => mbstring [35] => exif [36] => gd [37] => gettext [38] => imap [39] => mysql [40] => mysqli [41] => pdo_mysql [42] => PDO_ODBC [43] => pdo_sqlite [44] => soap [45] => sockets [46] => SQLite [47] => sqlite3 [48] => xmlrpc [49] => ming [50] => mhash ) –

Answer

Raffael picture Raffael · Jul 15, 2011

Have you enabled this extension?

Is it shown in php_info() or get_loaded_extensions() ?