Hello,
I am trying to get PHP5 to work with MYSQL 4.1.
I am having some issues.
1) when I run
<?php
phpinfo();
?>
I do not see any MYSQL config info
2) when I run this sample code
<?php
if (!class_exists('mysql')) {
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_mysql.dll');
else
dl('php_mysql.so');
}
// hostname or ip of server (for local testing, localhost should work)
$dbServer='localhost';
// username and password to log onto db server (what you entered in Step 4)
$dbUser='root';
$dbPass='anirudh';
// name of database (what you created in step 4)
$dbName='phptest';
$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
print "Connected successfully<br>";
mysql_select_db("$dbName") or die("Could not select database");
print "Database selected successfully<br>";
// close connection
mysql_close($link);
?>
I get an error message
Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=php_mysql.dll in your php.ini in C:\Program Files\Apache Group\Apache2\htdocs\php\mysql.php on line 5
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\php\mysql.php on line 20
Your help is very must appreciated