This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: Running PHP in your J2EE server?
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)
Advertisement
Caucho has a cool feature in their new server. They have PHP integration via their Quercus , a PHP implementation in Java.
To use PHP you can just register a PHP servlet (com.caucho.quercus.servlet.QuercusServlet).
You can also tie in PHP code to call any Java code via:
package example;
import com.caucho.quercus.module.AbstractQuercusModule;
public class HelloModule extends AbstractQuercusModule {
public static String hello_test(String message)
{
return "Hello, " + message;
}
}
and then using it like:
<?php echo hello_test("World") ?>
Another example of using Java as the platform, and various dynamic languages on top. JRuby. come to papa. Ruby on Rails on JVM.
Read: Running PHP in your J2EE server?