PHP does not load MySQL support automatically on SuSE Linux 9.1
| From: | Rainer Lehrig | Date: | Fri, 30 Apr 2004 07:00:48 +0000 |
| Subject: | PHP does not load MySQL support automatically on SuSE Linux 9.1 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13366@lists.php.net to get a copy of this message | ||
MySQL support must be loaded manually.
Where to configure it right (so that I have not to load it manually).
Manually loading works like this.
########################################
#!/usr/bin/php
<?php
if (!extension_loaded("mysql")) {
if (!dl("mysql.so")) return;
}
echo "start\n";
$con_handle = mysql_connect("localhost","contenido","contenido")
or die("could not connect\n");
echo $con_handle;
echo "end\n";
?>
#####################################
Rainer Lehrig