| |
|
 |
Interfacing with Java from PHP
|
PHP4 ext/java provides a simple and effective means for creating and invoking methods on Java objects from PHP. This article will give you a quick tutorial on how to use the PHP Java extension.
|
|
Screenshop of Java and PHP in action.
|
As you probably know PHP lacks some object oriented functionality. It has the basics, but stuff like: virtual functions, destructors, function overloading and private functions/variables are missing. Still PHP has many benefits, and it is a great language to use for website building. This article will demonstrate the ability PHP has to interface with a java class, using the java extension to PHP.
So what is ext/java? The README file that comes with ext/java has the following definition:
PHP4 ext/java provides a simple and effective means for creating and
invoking methods on Java objects from PHP. The JVM is created using JNI,
and everything runs in-process.
|
The Java extension is written and maintained by Sam Ruby. For details about how to install ext/java see the README file which comes with PHP. The readme file is also listed in full at the last page of this tutorial.
Comment List
There are no comments.
|
 |
|
|