|
Posted by Rik on 06/16/07 12:59
On Sat, 16 Jun 2007 14:06:51 +0200, Janna <mistressjanna@hotmail.com> =
wrote:
> I have the Java JVM installes on my server.
>I created a little php file to test it all out:
> <?php
> $des =3D new java("DES","xray");
> echo $des . "<br />";
> echo $x . ' =3D ' . $des->encrypt($x);
> ?>
>
> Which outputs as:
>
> Object
>
> Note that I have a class file C:\JavaSources\MyStuff\DES.class with an=
=
> encrypt(String) function. Everything works fine, even when I echo out =
=
> $des it shows as Object.
>
> However, my last line does not output the encrypt function. Can anyone=
=
> tell me why?
To know what $des actually is:
1. var_dump($des);
2. print_r(get_class_methods(get_class($des)));
Can't help you with the Java bit, never used it.
-- =
Rik Wasmus
[Back to original message]
|