Since I wrote a post, and especially in the last month, a couple of materials have been published that demonstrate the importance of this technology / But I still have to go deeper. Here is a brief explanation of what's what.
What it isIn essence, the bridge between PHP and Java gives developers access to Java code from their application and vice versa. The benefit is that you can use libraries or services embodied in one platform by the application of another environment.
This method differs from the standard use of front end HTTP servers for individual calls to PHP scripts or J2EE applications. PHP and Java applications can call each other without involving the HTTP server environment.
While you are using the connection between the Web Services API over HTTP, PHP-Java bridges allow you to call the remote application APIs directly from the program code. According to this, they are an order of magnitude more effective than ordinary network requests.
')
How it worksOne or more of the following rules must be followed:
- PHP is run as a server module and causes the serverlet running on the J2EE server.
- The servletlet executes the PHP script via CGI
- PHP calls non-J2EE application
Where is itHere are three main projects that embody this technology in different aspects.
- OpenSource bridge between PHP and Java on SourceForge hosting
- Zend Platform Commercial Java Bridge developed by Zend Technologies.
- Free PHP Integration Kit for WebSphere Application Server Community Edition.
Where to find out moreA well-documented OpenSource bridge between PHP and Java gives the impression of being the most mature in this technology. You can find a lot of information on the links on the project topic.
IBM developerWorks made the first installment in the series “Develop in Java and PHP on AIX 5.3”. But this requires a Unix environment.
There is not a lot of information yet, but I hope to find out more when / if Andy Gutman will post a presentation with JavaOne, which he described in his Bulgaria.
I'm not sure about the PHP Integration Kit information and am not sure that it has changed since the publication of the alphaWorks technology last year.