From: Jost B. <jos...@ya...> - 2005-10-29 12:31:37
|
Hi, > Isn't it possible for Java application to provide > execution > environment and call PHP interpretator for script > processing? Yes. This feature will be available with PHP/Java Bridge 3.0 which will be published in december. The version 2.0.8 already supports everything necessary to fully implement jsr 223 except that some methods are currently private. But if you make the Context class and the getContext() method public, you can already call php scripts from java: * "include" the php instance from the apache pool and pass it the current java continuation * the php instance closes over its environment (see java_closure) and passes it to the passed java continuation * in your java continuation you can call into the closure as often as you want. * when the java continuation (e.g. the service method) terminates all allocated php continuations terminate, too. Regarding the compilation on windows, Steven has posted an excellent article on the list, please see http://sourceforge.net/tracker/index.php?func=detail&aid=1322743&group_id=117793&atid=679233 Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |