From: <php...@li...> - 2010-06-21 13:22:06
|
Thanks for your help - lots of details and yet I'm still baffled :-( The examples on the JavaBridge site don't seem to cover (what I thought to be) the simple case of a servlet accessing/executing a PHP script. To clarify: Within my Java servlet, if I want to call a PHP script test.php (say in the same directory as the servlet or at the very least on the same box as the servlet) then I first need to acquire a PHP engine. Assuming I have JavaBridge also deployed to the same servlet container as my servlet then this ScriptEngine scriptEngine = EngineFactory.getInvocablePhpScriptEngine( this, getServletContext(), httpServletRequest, httpServletResponse, new URI( "http://127.0.0.1:8080/JavaBridge/java/JavaProxy.php" ) ); should give me the script engine? Or is this actually pointing to JavaProxy.php as my script that will be executed? How then do I use a FileReader to point to my test.php and then call a function (say f) within test.php? Thanks again, Bernard. _________________________________________________________________ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/ |