将PHP连接到Interbase:“未定义函数ibase_connect()” [英] Connect PHP to Interbase: "undefined function ibase_connect()"
问题描述
致命错误:Call到未定义的函数ibase_connect()在C:\ xampp\htdocs\Phase\includes\config.php在第11行
导致错误的行如下。
if(!ibase_connect 'DBHost']。:。$ config ['DBName'],$ config ['DBUser'],$ config ['DBPass'])){
echoConnection Error:。 ibase_errmsg();
我真的是新的php世界,有人可以解释一下应该做什么。 >
UPDATE
对不起,我忘了使用windows 64位机器, / p>
当我执行get_loaded_extensions()函数时,我得到以下结果:
[0] => Core [1] => bcmath [2] => calendar [3] => com_dotnet [4] => ctype [5] => date [6] hash [10] => iconv [11] => json [12] => mcrypt [13] => SPL [14] => odbc [15] 18] => standard [19] => mysqlnd [20] => tokenizer [21] => zip [22] => zlib [23] => libxml [24] => bz2 [27] => SimpleXML [28] => wddx [29] => xml [30] => xmlreader [31] => xmlwriter [32] mbstring [35] => exif [36] => gd [37] => gettext [38] => imap [39] => mysql [40] => mysqli [41] => pdo_mysql [ 43] => pdo_sqlite [44] => soap [45] => sockets [46] => sqlite [47] => sqlite3 [48] => xmlrpc [49] => ming [ / p>
您 enabled 此扩展程序?
它显示在php_info()或 get_loaded_extensions()?
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 ) –
Have you enabled this extension?
Is it shown in php_info() or get_loaded_extensions() ?
这篇关于将PHP连接到Interbase:“未定义函数ibase_connect()”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!