How do I get PHP to talk to MySQL, period, the end? I can't seem to do it, what's the trick?
Thanx
Phil
How do I get PHP to talk to MySQL, period, the end? I can't seem to do it, what's the trick?
Thanx
Phil
Let's see I believe if I am not mistaken that in PHP 5 MySQL is disabled and MySQLi is enabled instead so you need to check your php.ini for the following:
extension=php_mysql.dll
extension=php_mysqli.dll
Note that I have both enabled in my install so try that out then RESTART your webserver then check phpinfo() to see what you have.
Thanx I wish that were documented for 3rd-grade-level programmers like me out there
Phil
Actually it is however finding it might be a stunt.
PHP 5+
MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH. See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended.
See this PAGE