Check if mysql support is available and if not, try to dynamically load it
authorErik Moeller <erik@users.mediawiki.org>
Tue, 1 Jul 2003 04:40:56 +0000 (04:40 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Tue, 1 Jul 2003 04:40:56 +0000 (04:40 +0000)
(necessary under many installations where the PHP interpreter is not compiled
--with-mysql)

install.php

index 333c433..164c93c 100644 (file)
@@ -1,5 +1,12 @@
 <?
 
+if (!extension_loaded('mysql')) {
+    if (!dl('mysql.so')) {
+        print "Could not load MySQL driver! Please compile ".
+              "php --with-mysql or install the mysql.so module.\n";
+       exit;
+    }
+}
 # Install software and create new empty database.
 #