Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql and php on IIS - can enable mysql

Status
Not open for further replies.

jez

Programmer
Apr 24, 2001
370
VN
Hi everyone,

I have what seems to be a common problem but none of the fixes either work or are up to date.

I am used to a lamp set up, but for this job it has to be IIS with php and mysql. So in setting up my local machine i have IIS running and parsing PHP no problem.

But even though mysql is there and running, and i have made the documented changes in the php.ini i get the following

Call to undefined function mysql_connect()

I am

$dbcnx = mysql_connect('localhost') or die(mysql_error());

====
I have copied the libmysql.dll to my windows/system32 folder. My extention path is in the php.ini and i have ensured that both C:/php5/ext and mysql path is in my system path.

I cannot think what else to try, all code is downloaded from the proper sites (e.g. php.net and mysql.com) and i am on xp sp2.

Any suggestions..... please.

 
There is a programers section for PHP, you might want to post there....
Here is the link.
forum434
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top