Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


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.


| < 1 > | 2 | 3 | 4 | 5 | Next page >> | Printer-friendly page |

Comment List


There are no comments.


Forgot your password?

Register a new user

Results

Polls