|
From: <php...@li...> - 2009-02-04 21:03:42
|
Hi,
why don't you simply require a functional PHP environment? The bridge can be configured to use the system PHP installation instead of the local PHP binary within WEB-INF/cgi/.
> [PHP_MySQL]
> extension=php_mysql.dll
>
> And then copy-paste the php_mysql.dll from the dll's
I don't think this will work. The php mysql.so (php_mysql.dll) have been compiled against a specific PHP version and a specific mysql version:
[jostb@carlos ~]$ locate mysql.so
/usr/lib/php/modules/mysql.so
/usr/lib/php/modules/pdo_mysql.so
[jostb@carlos ~]$ ldd /usr/lib/php/modules/mysql.so
/usr/lib/php/modules/mysql.so:
linux-gate.so.1 => (0x00110000)
libmysqlclient.so.15 => /usr/lib/mysql/libmysqlclient.so.15 (0x0011d000)
The php_mysql driver depends on the version # of the mysql client library (version 15) in this case. A different client library might cause a crash.
I don't think it makes sense to ship a complete mysql installation with each PHP application. However, there are several open-source pure Java-based relational databases which can be easily packaged with your PHP/Java web application.
Regards,
Jost Boekemeier
|