Forum Moderators: coopster

Message Too Old, No Replies

enable the PHP mysql extension

How to enable mysql with PHP

         

morpheus83

7:35 am on Nov 3, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



I am trying to install phpadsnew on my computer. It has Win XP Professional, PHP 5, MySQL serve 4.0 and IIS. When I try to install phpadsnew it gives me the following error.
"The version of PHP you are using doesn't have support for connecting to a MySQL database server. You need to enable the PHP MySQL extension before you can proceed."
What do I need to do?
Thanks in advance

coopster

12:27 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



From the MySQL Functions [php.net] page in the manual:


Note: Windows users will need to enable
php_mysql.dll
inside of
php.ini
and either copy
libmysql.dll
into the Windows system directory, or make it available to the PATH.

I prefer to make it available to the PATH after uncommenting it in the .ini file. A description of how to do this can be found in msg #2 of the Installing PHP5 Under Windows XP and Apache [webmasterworld.com] thread in our PHP Forum Library [webmasterworld.com]. I realize you are not using Apache, but the .ini modification pertaining to your specific request still applies.