In Windows XP 32bit, where does the php.ini file need to be?

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

Guest
Ive installed WAMP, php and apache run fine but MySQL doesn't. The MySQL service is started but i get the error:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysql.php on line 2

The code is in mysql.php is just the standard test script:
<?php
$link = mysql_connect('localhost', 'user', 'pass');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
?>

Also, its PHP 5 and MySQL 5.
MySQL does not show up on the php info page anywhere.

I've uncommented the mysql lines in the php.ini file but i don't think its stored in the correct location.
I have it in C:\WINDOWS\php.ini along with the libmysql.dll file.
They're both also in C:\WINDOWS\system32\ because i have no idea where they need to go lol, different sites saying different locations, anyone have any ideas???

Thanks
 
Back
Top