|
From: <php...@li...> - 2009-02-01 18:57:45
|
Jost,
Okay, so I am looking into installing/enabling a servlet engine under
OS X Server. That still leaves me with one issue, how can I extract
the files I need from the JavaBridge package without a PHP fast-cgi?
Since I only have a PHP binary and the Apache php.so extension.
Is there any other way to get the files I need from the bridge
package? Any help appreciated.
Jon
On Jan 27, 2009, at 9:45 AM, php-java-bridge-
us...@li... wrote:
> Hi Jon,
>
>> [...] I assume you are saying by the
>> above that I could no longer simply recompile the 3.2.1 bridge
>> source
>> with the latest PHP source to produce a viable bridge extension to
>> PHP, is that right?
>
> Yes.
>
>
>> Are you speaking from the point of view of someone who is
>> trying to access PHP from Java -or- call Java libraries from PHP?
>
> Both still work. It's just that the java.so/php_java.dll extension
> is not necessary anymore (PHP >= 1.4).
>
>
>> It seemed easy with the old 3.2.1 version of the bridge
>
> It is even easier now that we've scrapped the java extension. Just
> install a servlet engine or J2EE server on a computer within your
> intranet and use:
>
> require_once("http://yourServer:8080/JavaBridge/java/Java.inc");
>
> in your scripts to access it.
>
> If you want to start Java with each PHP script invocation, use the
> JSR 223 API (Java >= 1.6):
>
> jrunscript -classpath JavaBridge.jar -l php testScript.php
>
>
>
>> java_require(3rd party jar files...);
>> $props = new Java("java.util.Properties");
>> $props->put("someval","sourcedir");
>
> Yes. Just add a java_require(".../Java.inc") to your script.
>
>
> Regards,
> Jost Boekemeier
>
>
>
>
>
> ----------------------------------------------------------------------
> --------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|