|
From: <php...@li...> - 2008-09-18 16:46:00
|
On Sun, Sep 14, 2008 at 12:00 PM, <php...@li...> wrote: >> Why not just [...] pass in the PHP script on standard input? > > because PHP needs a real file within the current working dir. Recent > versions of PHP cannot include PHP files from urls anyway, unless > you set the allow_url_include PHP option. > > However, you can subclass the php/java/script/PhpServletScriptEngine.java > to do what you want. Please see: > > http://php-java-bridge.cvs.sourceforge.net/php-java-bridge/php-java-bridge/server/php/java/script/PhpServletScriptEngine.java?view=markup > > You need to customize the > > protected Object eval(Reader reader, ScriptContext context, String name) throws ScriptException; > > method. Thank you for your assistance with this. I will look into doing that. -- Jeff Weston PGP public key available from http://pgp.mit.edu/ PGP Key ID: 0x14B456ED |