drhzn3911 2012-06-06 20:47
浏览 72

使用PHP连接到远程mysql服务器

I have PHP version 5.3.2 installed. I'm trying to connect to a remote mysql database version 4.1.22

The PHP is running on IIS7

The problem is in my php.ini, only 2 files are included as extensions:

extension=php_curl.dll
extension=php_sqlite3.dll

I added these to the php.ini

extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll

and also placed the 3 dll files in the ext folder where PHP is installed. But I keep getting a 500 server error. Nothing is recorded in the PHP error log.

I got this from the event viewer application error:

Faulting application php-cgi.exe, version 5.3.2.0, time stamp 0x4b8ebb1d, faulting module php-cgi.exe, version 5.3.2.0, time stamp 0x4b8ebb1d, exception code 0xc0000005, fault offset 0x0000193a, process id 0x2540, application start time 0x01cd441011e2e3a0.

Basically I'm getting an error on using the mysql_connect() which is:

Call to undefined function mysql_connect()

Any help would be greatly appreciated.

  • 写回答

2条回答 默认 最新

  • doumou8527 2012-06-06 21:03
    关注

    Make sure that your application pool is set to the correct 32-bit/64-bit mode

    评论

报告相同问题?

悬赏问题

  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题