doudou3716 2011-11-27 20:45 采纳率: 100%
浏览 125
已采纳

调用未定义的函数mysqli_connect

I have a fresh installation of XAMPP and I used to get PHP notices to turn them off I enbabled:

Default Value: E_ALL & ~E_NOTICE

in the php.ini.

And now I have the problem that I get the error message, which you can read in the title of this question. Though, the same function would work when I would not have that one error_reporting enabled.

When restarting the Apache server, I also get the error message:

syntax error, unexpected '&' in .../php.ini on line 110.

Line 110 is the error_reporting I enabled which you can see above.

I am trying to make sense out of this but I seem to have troubles. Any ideas what is going on here?

By the way, php_mysql.dll and php_mysqli.dll are both enabled in the php.ini file.

  • 写回答

2条回答 默认 最新

  • dongqiu3709 2011-11-27 20:48
    关注

    Default Value: E_ALL & ~E_NOTICE

    Isn't valid in the php.ini file. What you want is:

    error_reporting = E_ALL & ~E_NOTICE

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染