From: <php...@li...> - 2011-03-23 10:24:57
|
Hello, i want to use the JavaBridge to extend a php web-application which is running on a normal Apache server. Therefore i deployed the JavaBridge.war file on a tomcat and importet "Java.inc" in my php skript on the Apache. Works really well in my test enviroment. But for security reasons i am not allowed to change the server configurations extensive on the server my application should finally run at. So i am not allowed to set "allow_url_include= ON" in the "php.ini". So my question is: Is there a way to use the JavaBridge in this setup without allowing url imports for everyone and everything? And if not maybe someone got another solution for me? Here are my System Specifications: OS: windows XP Server: xampp - 1.7.4 (the apache and tomcat are integrated) PHP: php 5.3.5 JavaBridge: php-java-bridge_6.2.1_documentation.zip My short Testcode running on the Apache: <?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo java("java.lang.System") -> getProperties(); ?> I am very thankful for every help! Greetings Frerik -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone |
From: <php...@li...> - 2011-03-23 10:43:42
|
Just copy the Java.inc file to your apache server and include it locally. Works fine for me :D El 23/03/2011 11:24, php...@li... escribió: > Hello, > i want to use the JavaBridge to extend a php web-application which is running on a normal Apache server. > Therefore i deployed the JavaBridge.war file on a tomcat and importet "Java.inc" in my php skript on the Apache. > Works really well in my test enviroment. > > But for security reasons i am not allowed to change the server configurations extensive on the server my application should finally run at. So i am not allowed to set "allow_url_include= ON" in the "php.ini". > > So my question is: > Is there a way to use the JavaBridge in this setup without allowing url imports for everyone and everything? > And if not maybe someone got another solution for me? > > Here are my System Specifications: > > OS: windows XP > Server: xampp - 1.7.4 (the apache and tomcat are integrated) > PHP: php 5.3.5 > JavaBridge: php-java-bridge_6.2.1_documentation.zip > > My short Testcode running on the Apache: > > <?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); > echo java("java.lang.System") -> getProperties(); > ?> > > I am very thankful for every help! > > > Greetings Frerik > > -- *Jaume López * Área de Innovación jau...@la... <mailto:jau...@la...> http://www.lavinia.tc/logos/lavinia_logo.gif www.laviniainteractiva.com <http://www.laviniainteractiva.com/> www.vertice360.com <http://www.vertice360.com/> T(34) 93 972 34 10 - ext 226 http://www.lavinia.tc/logos/vertice.jpg |
From: <php...@li...> - 2011-03-23 11:30:32
|
Hi But then you need to set some parameters as pr. the "Connect PHP with ypur servlet" - http://php-java-bridge.sourceforge.net/pjb/servlet-programming.php Hermod -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Wednesday, March 23, 2011 11:29 AM To: php...@li... Subject: Re: [Php-java-bridge-users] Not allowed to set allow_url_include. What now? Just copy the Java.inc file to your apache server and include it locally. Works fine for me :D El 23/03/2011 11:24, php...@li... escribió: > Hello, > i want to use the JavaBridge to extend a php web-application which is running on a normal Apache server. > Therefore i deployed the JavaBridge.war file on a tomcat and importet "Java.inc" in my php skript on the Apache. > Works really well in my test enviroment. > > But for security reasons i am not allowed to change the server configurations extensive on the server my application should finally run at. So i am not allowed to set "allow_url_include= ON" in the "php.ini". > > So my question is: > Is there a way to use the JavaBridge in this setup without allowing url imports for everyone and everything? > And if not maybe someone got another solution for me? > > Here are my System Specifications: > > OS: windows XP > Server: xampp - 1.7.4 (the apache and tomcat are integrated) > PHP: php 5.3.5 > JavaBridge: php-java-bridge_6.2.1_documentation.zip > > My short Testcode running on the Apache: > > <?php > require_once("http://localhost:8080/JavaBridge/java/Java.inc"); > echo java("java.lang.System") -> getProperties(); ?> > > I am very thankful for every help! > > > Greetings Frerik > > -- *Jaume López * Área de Innovación jau...@la... <mailto:jau...@la...> http://www.lavinia.tc/logos/lavinia_logo.gif www.laviniainteractiva.com <http://www.laviniainteractiva.com/> www.vertice360.com <http://www.vertice360.com/> T(34) 93 972 34 10 - ext 226 http://www.lavinia.tc/logos/vertice.jpg ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |