Well, we finaly got php working on our apache2 server...now I can't get mysql to interface with it.

I have done quite a bit of researching on the internet, and tried every solution that came my way. I've moved the DLL's into almost any folder that would make sense (even some that don't), I've restarted the server a thousand times..and I still get the lovely error of:

fatal error: call to undefined fuction mysql_connect()

Has anyone else had SERIOUS trouble with this?

I am running php5, apache2, and mysql 4.0.2

I've uncommented the line in php.ini that should add the mysql support. I've tried putting the libmysql.dll, libmysqli.dll, and the mysql.dll files in the root PHP directory, the system32 folder, and the directory where my apache2 exe is. (all seperatly and at the same time).

Still getting errors.

Thanks for the help.

    I am also facing the exact problem. I tried all the possible permutations and combinations.
    If anyone has got any solution then please let me know.

      i'm running WAMP:
      WinXP Pro
      Apache 2.0.50
      MySQL 4.0.20
      PHP 5.0.0

      I installed PHP5 in E:\PHP5 then copied the default php.ini to C:\Windows and added these two lines:

      extension_dir = "E:\PHP5\ext\"
      extension=php_mysql.dll

      and everything works fine.

        Write a Reply...