You are here: Re: Calling Java Classes on Server « PHP Programming Language « IT news, forums, messages
Re: Calling Java Classes on Server

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация