From: <php...@li...> - 2011-02-24 20:27:52
|
Hi, I'm brand new to the bridge and just exploring what my options. In my scenario, I would be using JSR223 to execute PHP script from within Java. I have two questions: 1) Is it mandatory for the PHP script to be hosted on a web server? Can I just load it from the file system and execute evaluate it? 2) Can I pass a database connection to PHP? With RhinoJS and JSR223, I can initiate a socket connection in Java and pass it to Javascript where it gets used without problem. Can I do the same with the Java/PHP bridge? Thanks, Muesli. |