将 PHP 连接到 Interbase:“未定义函数 ibase_connect()”
嘿,我正在尝试将我的 php 应用程序连接到 interbase 数据库,但出现以下错误,
Fatal error: Call to undefined function ibase_connect() in C:\xampp\htdocs\Phase\includes\config.php on line 11
导致错误的行如下。
if(!ibase_connect($config['DBHost'] .":". $config['DBName'], $config['DBUser'], $config['DBPass'])) {
echo "Connection Error: ". ibase_errmsg();
我对 php 世界真的很陌生,有人可以解释一下我应该做什么吗?
更新
抱歉,我忘了提及我使用的是 Windows 64 位计算机,如果这有助于
我在执行 get_loaded_extensions() 函数时得到以下内容
[0] =>核心[1] => bcmath [2] =>日历 [3] => com_dotnet [4] => ctype [5] =>日期 [6] =>埃雷格 [7] =>过滤器[8] => ftp [9] =>散列 [10] => iconv [11] => json [12] =>; mcrypt [13] => SPL [14] => odbc [15] => PCRE [16] =>反思[17] =>会话 [18] =>标准[19] => mysqlnd [20] =>;分词器 [21] =>邮编 [22] => zlib [23] =>; libxml [24] =>; dom [25] => PDO [26] => bz2 [27] => SimpleXML [28] => wddx [29] => xml [30] =>; xmlreader [31] => xmlwriter [32] =>; apache2handler [33] =>法尔[34] => mbstring [35] =>; exif [36] => gd [37] =>获取文本[38] => imap [39] => mysql [40] => mysqli [41] => pdo_mysql [42] =>; PDO_ODBC [43] => pdo_sqlite [44] =>肥皂 [45] =>套接字 [46] => SQLite [47] => sqlite3 [48] => xmlrpc [49] =>;明[50] =>哈希)–
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 ) –
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否启用此扩展程序?
是否显示在 php_info() 或 get_loaded_extensions() 中?
Have you enabled this extension?
Is it shown in php_info() or get_loaded_extensions() ?
据我所知,您在基于 Windows 的计算机上工作。你检查过你的安装是否正确吗?你可以看一下这个地址: http://www.php.net/ Manual/en/ibase.installation.php
我怀疑某些 DLL 不存在。
As I see, you work on a Windows based machine. Have you checked your installation is correct? You can give a look at this address: http://www.php.net/manual/en/ibase.installation.php
I suspect some DLLs not present.