|
From: <php...@li...> - 2010-07-23 09:33:16
|
> However, that's just a convention. You may use any bindings to PHP
I meant: You may pass any bindings to PHP using the JSR 223 API.
On 7/23/10, Jost Boekemeier <jos...@go...> wrote:
>> 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
>
|