vs 2.3, winxp. connecting to a mysql 4.0 db

Changed all the debug configs to php5.

extension=php_mysql.dll is uncommented and php_mysql.dll in the ext dir

libmySQL.dll in php dir & c:\windows\

I've restarted, etc etc. still no workie.

Exact error: mysql_connect() undefined.

Any ideas?

Thanks

juanc says:

Try phpinfo() to make sure the module is loaded properly.

hydroxy says:

I did a little more playing around... I can get mysqli module to load, but not the mysql module.

php_mysql.dll is in /ext and it's uncommented. Ideas?

juanc says:

Perhaps you can try to use the Dependency Walker tool to identify a missing dll required by this module.

hydroxy says:

Thanks for the tip of Dependency walker... was very easy to spot the problem. Tip for people new to Dependency Walker - have it look at php_mysql.dll to figure out the issue. just download it, run it, file->open, select the php_mysql.dll in the php5/ext/ dir.

Solution: of all the files I copied to /windows/system32, I didn't copy the php5ts.dll. Put that in there and it worked fine.

Which is weird though, because I had added the php5 folder to the PATH environmental variable. Not sure why it didn't read it.

Anyone else having trouble, here is a good place for info:
http://www.phpbuilder.com/board/archive/index.php/t-10278679.html