Apache mit PHP3 und MySQL
Frank Matthieß
Frank.Matthiess at t-online.de
Wed Jul 14 14:17:11 CEST 1999
Apache mit PHP3 : OK. Danke.
Apache mit PHP3 und MySQL: Geht nicht.
Das bekommt der Browser zurück:
Der erste MySQL TestHole alle Datenbanknamen von MySQL
Fatal error: Call to unsupported or undefined function mysql_connect() in
/home/httpd/html/php/MySQL-Test1.php3 on
line 11
...und so sieht das Script aus:
---start---
<html><head><title>MySQL Test</title>
<body>
<?php
$dbname=test;
$tblname=Tabelle;
echo "Der erste MySQL Test";
echo "Hole alle Datenbanknamen von MySQL";
$res = mysql_connect(localhost, root, mysql);
echo "\$res: $res";
$res = mysql_list_dbs($res);
echo "\$res: $res";
?>
</body></html>
---ende---
Tests mit den Funktionen mail(), phpinfo() gehen auf Anhieb.
Fehlt ein Teil, ist mal wieder irgendwo etwas einzutragen (http.conf)?
More information about the Linux
mailing list