|
From: <php...@li...> - 2015-02-07 01:54:06
|
I am new to PHP/JavaBridge. I have PHP scripts running on Apache
Httpd, that needs to invoke Java classes deployed with JavaBridge.war
(JavaBridge/WEB-INF/lib/mylib.jar) on tomcat6.
I tried
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$obj = new java("com.mycompany.myproduct.MyClass") ; //MyClass is in mylib.jar
it successfully created the java object.
But for
require_once("http://localhost:8080/JavaBridge/java/Java.inc)
to work, I have to turn on allow_url_include=On
Wondering if there is a way for me to NOT have to turn on allow_url_include?
I copied over the Java.inc file and placed under the same directory
where my php scripts are, hoping this would work:
require_once("Java.inc");
it does not! new java() just hung.
Anyone knows a way to get this to work without requiring allow_url_include=On?
|