# Fatal error: Call to undefined function MYSQL_CONNECT()

#### Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

•  Subject
• Author
• Posted on
I know this is a common error, and that there are lots of posts all
over the place as to why it happens, but I cannot for the life of me
figure out what I'm doing wrong.  Here's the scoop:

My path includes: c:\program files\php\; c:\program files\php
\extensions;

php.ini includes:

extension=php_mysql.dll
extension=php_mysqli.dll

I'm using Windows XP Professional with SP2, php 5.2.5 and mysql
5.0.51a

The libmySQL.dll was copied from the C:\Program Files\MySQL\MySQL
Server 5.0\bin folder into the c:\program files\php\ folder.

I have disabled Norton internet worm protection, rebooted,
systematically examined all of the above, and nothing has worked.

Can anybody point me in the right direction?

MrsBean

## Re: Fatal error: Call to undefined function MYSQL_CONNECT()

Are you sure you've edited the correct php.ini?  phpinfo() will tell
you which one is actually being used.

## Re: Fatal error: Call to undefined function MYSQL_CONNECT()

wrote:

Is c:\program files\php\ in your path?
-- =

Rik Wasmus

## Re: Fatal error: Call to undefined function MYSQL_CONNECT()

Yes.  The php.ini file that is displayed in phpinfo() is c:\program
files\php\php.ini, and that is the one I have edited.

MrsBean