Virgilio,
PHP has a Java servlet extension which allows PHP itself to run as a servlet
in a Java server. This feature also uses the PHP Java extension under the
covers that allows you to code references to other Java classes (such as any
Servlet or bean) from within your PHP code as follows:
$formatter = new Java("java.text.SimpleDateFormat",
"EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java("java.util.Date"))."\n";
Please review the README's for the php servlet and java extensions in the PHP4
distribution under sapi/servlet and ext/java respectively.
Alex