Php extension on windows xp

I installed php on my xp but was unable to add the extension to mysql

This is what I did in php.ini:

[PHP_MYSQL]
extension=php_mysql.dll

      

and there is such a file in ext/

but when i look in phpinfo()

, only to find that the mysql extension is still not added.

What have I done wrong?

0


a source to share


5 answers


In your php.ini file, do the following:

extension=ext/php_mysql.dll

      



This must exist in the config section [PHP]

, not [PHP_MYSQL]

.

+1


a source


[PHP_MYSQL]



would this be the cause of the problems? guessing.

+1


a source


Are you using Apache? If so, check the php.ini in apache \ bin as it might be an ini file.

As Evgeny Savichev noted, the name of the file being processed is displayed in phpinfo in the "Loaded configuration file" section

0


a source


Make sure you have mysql servers dlls installed and somewhere on% PATH%. Alternatively, you can use a tool like depwalker to load the php_mysql.dll file and see what's missing from the dynamic link.

0


a source


To avoid configuration issues, I would install XAMPP ( http://www.apachefriends.org/en/xampp.html ), which installs php, apache and mysql and configures the whole thing as a production server installation.

0


a source







All Articles