I've set up my PC with IIS 5.1 and PHP5. PHP is working beautifully (how I managed that, I have no idea) except when it comes to using it with MySQL (I have 4.1.14).
I have written a simple test page:
<html>
<head></head>
<body>
<?php
$connid = mysql_connect ('localhost' , 'root' , 'mypassword');
if ($connid==false)
{
echo "MySQL failed to connect";
}
else
{
echo "MySQL succeeded";
}
mysql_close($connid);
?>
</body>
</html>
However, when I load this page, I get this message in a pop-up box:
Unknown(): (null) Unable to initilialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
I am using Firefox 1.0.6 and Windows XP, in case that helps at all.
Apologies if there are already threads about this, or perhaps even a glaringly obvious solution, but any pointers would be greatly appreciated as I'm pretty new to working with anything remotely server-like. Do I perhaps need to recompile something? If so... how?
All I want to do is set up my computer so I can play about a bit with PHP and mySQL, why does it have to be so difficult?!