Re: another crazy idea

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: another crazy idea
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7753@lists.php.net to get a copy of this message
> 1) just how difficult (ok, you already know it is...) would it be to "allow"
> php to access some Java classes? ie:
> 
> 	<?
> 		$myinstance = java MyClass("a", "b"); /* maybe "java" could
> work like "new" ... 
> 								maybe extend
> this to a "com" operator as well? */
> 		$myinstance.MyFunc();
> 		$myinstance.fubar = 12;		
> 	?>

I am no big Java expert, but I don't see how this would work.  I don't
thikn it is possible to write a native C program which calls a Java class
running in a JVM, but I could be wrong here.  If you can come up with a
example of this working, then it can be done in PHP.

-Rasmus



Thread (15 messages)

« previous php.dev (#7753) next »