PDA

View Full Version : Getting MySQL to work with PHP5 on Windows


Jan Lamprecht
5-6-09, 12:26 PM
I have installed PHP5 - which I did by unzipping the PHP directory and then going into IIS and setting the .php extension to point to the isapi dll.

But now it give an error when I try to use mysql_connect.

How do I get php5 to work with mysql?

YvetteKuhns
5-6-09, 12:27 PM
Are you doing this on a localhost or on a web server? Note: This forum is for PowWeb hosting customers and PowWeb uses a Linux web server, not Windows.

Jan Lamprecht
5-7-09, 04:57 AM
I am doing this on a localhost, on my own machine.

YvetteKuhns
5-7-09, 10:24 AM
I haven't used IIS in a while. I install XAMPP (http://www.apachefriends.org/en/xampp-windows.html) for a server environment on Windows. It allows you to use both php4 and php5 as well as MySQL.

To which type of database are you trying to connect? Where is the database?

Autoload
5-7-09, 07:07 PM
http://www.iis-aid.com/articles/how_to_guides/installing_php_5_on_iis_in_5_simple_steps

Rob_York
5-8-09, 08:00 AM
This (http://www.ultraedit.com/support/tutorials_power_tips/uestudio/local_php_mysql_dev_environment.html) is pretty much the same method I used (found it on a different website which now refuses to display in Google) as XAMPP didn't like my laptop...