Zitat:
Original geschrieben von AIRNESS
IIS 6.0
PHP 5.0.4
MYSql 4.1.12
<?php
mysql_connect('localhost', 'root', '');
mysql_select_db('test');
echo 'Unless you see any error messages, everything should be fine.';
?>
Fehler:
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\mysqltest.php on line 2
|
Siehe PHP5-'Das Praxisbuch' von Franzis:
In PHP 5 ist MySQL weder standardmäßig aktiviert, noch ist die MySQL-Client_Bibliothek in PHP enthalten.
Um die mysqli-Erweiterung für PHP zu installieren, verwenden Sie die Option --with-mysqli=mysql_config_path wobei mysql_config_path auf das Verzeichnis des mysql_config_programms verweist, welches bei MySQL-Versionen größer als 4.1 vorhanden ist. Darüber hinaus ...
--without-mysql
Einfacher wäre es gewesen, XAMMP für Windows zu installieren.