phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] Re: [Phpgroupware-users] Install DB problem


From: Ralf Becker
Subject: [Phpgroupware-developers] Re: [Phpgroupware-users] Install DB problem
Date: Mon, 16 Jun 2003 09:25:19 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.3) Gecko/20030312

This is from the user-list:

Blurg schrieb:
Hi,
I get this error messages which has been before on the mailing list, and
the proposed solutions aren't working for me.

No MySQL support found. Disabling
No Postgres-DB support found. Disabling
No Microsoft SQL Server support found. Disabling
No Oracle-DB support found. Disabling

did not found any valid DB support !
try to configure your php to support one of the above mentioned dbs or
install phpgroupware by hand

It happens when the (no) db-module is compiled into the php-binary.

We could do much better if we not only try if the extension is loaded, but also try to load the extension if it is not loaded.
Atm: if (!extension_loaded($db_type)) echo "... Disabling";
Change to: if (!extension_loaded($db_type) && !dl($db_type)) echo "... Disabling";

Then phpgwapi/inc/functions.inc.php have to do this check/load too, before the first db-access:
if (!extension_loaded($db_type) && !dl($db_type)) {
   echo "Cant load my db-support for '$db_type' !!!";
   exit;
}
Atm you get not even an error message in that situation.

This way we could deal with php-binaries without compiled it db-support, eg. the cgi-binary on debian woody.

Ralf
--
----------------------------------------------------------------------
Ralf Becker
OUTDOOR UNLIMITED Training GmbH                Telefon 0631 / 31657-0
Leibnizstraße 17                               Telefax 0631 / 31657-26
D-67663 Kaiserslautern            EMail address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]