From: <php...@li...> - 2010-07-23 09:32:18
|
> What I mean by "script level arguments" (the term is probably incorrect) are > those arguments that you pass in as parameters to the script being run. Sort > of like the main()'s argc/argv arguments. argv is passed by jrunscript on ENGINE_SCOPE: jrunscript -classpath JavaBridge.jar -l php test.php You can access it using <?php // test.php echo java_context()->get("argv"); ?> However, that's just a convention. You may use any bindings to PHP using the JSR223 API. Regards, Jost Boekemeier |