|
From: <php...@li...> - 2008-04-23 13:54:33
|
Hi, the PHP/Java Bridge is written in pure Java. Since Java runs in a separate process, and PHP communicates with Java using plain fopen()/fwrite()/fread() calls, the Bridge cannot crash PHP or the Apache process, regardless of how badly it behaves. If Apache crashes, there's either a bug in PHP or Apache itself. > The other thing i tried: The docs say, you can convert .jar's to native > PHP. Not sure how this should work, but this feature doesn't seem to The documentation on php-java-bridge.sf.net is a little bit outdated. The convert is no longer necessary, the standard PHP library is now part of PHP. You can use java_autoload() instead. Example: <?php require_once("java/Java.inc"); java_autoload(); $props = java_lang_System::type()->getProperties(); foreach ($props as $k=>$v) { echo "($k . $v)\n"; } ?> __________________________________________________________ Gesendet von Yahoo! Mail. Mehr Möglichkeiten, in Kontakt zu bleiben. http://de.overview.mail.yahoo.com |