HiveMind on PHP and Java
November 22nd, 2006 | Published in JAVA, PHP | 2 Comments
Our buddies over at hivemind.co.uk have published another PHP article. This time, instead of decrying PHP, they show how to use the PHP-Java bridge. The article itself, titled How to Bridge PHP and Java for Powerful Web Solutions it technically solid for the most part. I wonder about the advice on creating an autoexec.bat file to set your PATH and Java’s CLASSPATH but it is technically accurate, you can do it this way.
Beyond that, there is a good primer for getting the JDK setup and operating on your machine in a minimum number of steps. (and since it’s Windows based, it’s important to know that no reboots are required for this installation.) Once you have the JDK installed, they walk you through a quick “hello world” of creating a Java class and using it in PHP.
Seems prety simple and if you have existing Java code it is cool to leverage that, I wonder how this relates to the java bridge in Zend Plateform.
(Via Zend Developer Zone.)

November 22nd, 2006 at 1:34 pm (#)
Would this be helpful in a situation where a main web app is Java-based, but certain views (say like credit card processing) are in PHP? I think I know a situation like that… cough, cough.
November 23rd, 2006 at 1:29 am (#)
Not sure on the use of php-java bridge. As I have done extensive programming on both the languages, I am sure PHP world could make lot of advantages from java world owing to its ease of apis presence. Cheers