[prev in list] [next in list] [prev in thread] [next in thread]
List: php-install
Subject: [PHP-INSTALL] PHP 5.2.0 and MySQL problems
From: 72.228.39.132
Date: 2007-01-15 1:30:53
Message-ID: BA.D3.12132.459DAA54 () pb1 ! pair ! com
[Download RAW message or body]
I'm trying to set up a testing machine (Windows XP, IIS), with PHP, MySQL,
and various other languages. I got PHP and MySQL individually installed
fine, but PHP (v5.2.0) doesn't seem to want to work with MySQL (v5.0.27). I
un-commented the extension=php_mysql.dll in php.ini, and also copied
libmysql.dll to C:\Windows\system32.
I tried to execute a test script:
<?php
// hostname or ip of server (for local testing, localhost should work)
$dbServer='localhost';
// username and password to log onto db server
$dbUser='root';
$dbPass='';
// name of database
$dbName='test';
$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);
?>Here's the output that is generated:Fatal error: Call to undefined
function mysql_connect() in C:\Inetpub\wwwroot\db.php on line 12Can anyone
help me out?Thanks,Matt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic