Hi,
> I can't find a readme that mentions anything about
> this.
The README is in the PHP/Java Bridge binary download
(php-java-bridge_x.y.z_j2ee.zip.
> java -jar JavaBridge.jar SERVLET_LOCAL:9676
> My Test.php is thus: (I tried using new Java(...)
>require_once("http://localhost:9676/JavaBridge/java/Java.inc");
> echo $jversion;
=>
> Java version=[o(String):"1.5.0_10"]
Perfect.
> If I uncomment the line below assignment of
=>
> Java version=Object id #19
Right.
> This can't be right!!!
Why not? This is standard PHP behaviour. -- If you
want object=>string autoconversion, this is available
and default in PHP6, but not in PHP5.
What exactly do you want to do? Do you want to convert
the created Object into a String? See the
documentation for java_cast($obj, PHP_TYPE) and
java_values($obj).
I guess what you want to do is something like:
$props = $system->getProperties();
// echo $props; // a java Properties object
$phpArray = java_values($props);
Please see our documentation at php-java-bridge.sf.net
for details.
Regards,
Jost Boekemeier
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
|