MySQL connection problem (Call to undefined function mysql_connect())

The other day I installed PHP 5 as module of Apache 2, they both worked perfectly. Then I install MySQL. I think I have maded right because I can create databases and tables with the comman line client, but the problem comes when I attempt to connect to MySQL using PHP, the following error displays:

Fatal error: Call to undefined function mysql_connect() in C:\web\Apache2\htdocs\mysql.php on line 2

-----------------------------------------------------------

This is the code I used:
<?php
$link = mysql_connect(‘localhost’, ‘root’, ‘******r’);
if (!$link) {
die('Could not connect: ’ . mysql_error());
}
echo ‘Connected successfully’;
mysql_close($link);
?>

I’ve been looking for information related to the problem, so far I have enabled the “php_mysql.dll” on the php.ini file, copy the “libmysql.dll” into the system32 directory and today I made a path on the system linking to my PHP directory. Nothing of this has worked.

I should comment this… my version of MySQL (4.1) doesn’t have the “green light” to star up the server…just the comman line and the instance config wizard. The program just let me chose a password (the one I use to design table in the comman line), but no username or server name. I assume my username its “root” and the server name its “localhost” so i used this in the mysql_connect() function.

Please I need some help here, this situation it’s very frustrating. (Im using XP)