I'm about to move my vB Forum to an IIS 6 Server on Windows 2003 Server (essential).
I installed PHP5, it's working fine (made a test.php with echo "asdf"; and it's getting displayed).
I installed MySQL 4.1.x - running as service.
I added "C:\Programme\PHP\ext\" to my PATH Variable in Windows.
I edited C:\Programme\PHP\php.ini :
(removed semis)
libmysql.dll and libmysqli.dll exist in C:\Programme\PHP\ext.
However, I'm still getting Fatal error: Call to undefined function mysql_connect() in C:\root\domains\catch-your-deal.de\index2.php on line 6
index2.php is a test file with the following content:
I have no idea why it won't work. Could anyone please help me out?
Thanks!
I installed PHP5, it's working fine (made a test.php with echo "asdf"; and it's getting displayed).
I installed MySQL 4.1.x - running as service.
I added "C:\Programme\PHP\ext\" to my PATH Variable in Windows.
I edited C:\Programme\PHP\php.ini :
(removed semis)
extension_dir = "C:\Programme\PHP\ext"
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_openssl.dll
extension=php_zip.dll
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_openssl.dll
extension=php_zip.dll
However, I'm still getting Fatal error: Call to undefined function mysql_connect() in C:\root\domains\catch-your-deal.de\index2.php on line 6
index2.php is a test file with the following content:
PHP Code:
<?
echo "test";
phpinfo();
mysql_connect('localhost', 'xxx', 'xxx') or die ('Could not fetch data: '.mysql_error());
mysql_select_db('xxx');
$user = mysql_query("SELECT ID FROM user WHERE ID='1'"); // just a test
echo $user;
?>
Thanks!
Comment