duanhuren5581 2016-07-15 02:52
浏览 51

PHP-Firebird(未定义ibase_connect = CHARACTER SET iso-8859-1)

im new about firebird. I'm trying to connect between php and firebird. This is the code :

$host='192.168.12.1:D:/DB/ALFABETA.FDB';
$username='john.doe';
$password='123456789';
$database='ALFABETA';

$dbh=ibase_connect($host,$username,$password) or die (ibase_errmsg());

$sth=  ibase_query($dbh) or die (ibase_errmsg());

But after i run the code in browser, the warning statement is coming up. Help. What i should do ?

Warning Statement

Warning: ibase_connect(): bad parameters on attach or create database CHARACTER SET iso-8859-1 is not defined in /var/www/fortrainingcrud/connect_db.php on line 7 bad parameters on attach or create database CHARACTER SET iso-8859-1 is not defined

  • 写回答

2条回答 默认 最新

  • duanou2526 2016-07-15 04:39
    关注

    I finally got the answer ! Here it is :

    1. In php.ini, i add extension=php_interbase.dll
    2. Restart the Apache service
    3. The code that i've write before, works well
    评论

报告相同问题?

悬赏问题

  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动