|
From: <php...@li...> - 2008-12-30 22:37:17
|
Thanks Peter. I found that information in the /JavaBridge/settings.php and was just trying to figure out where to turn it on. That was a big help. The PHP side is fine I was missing that on the tomcat side. Jeff On Tue, 2008-12-30 at 14:30 -0800, php...@li... wrote: > IBM has had a good introduction: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/index.html#resources > > > >From their article: > > Listing 6. Uncommenting the block to allow remote access to Java classes > <init-param> > <param-name>promiscuous</param-name> > <param-value>On</param-value> > </init-param>... > > Your PHP Java Bridge installation works by importing a PHP include file directly > from the remote Java application server. Unfortunately, just as the PHP Java > Bridge wouldn't allow remote access, default PHP installations ban the remote > inclusion of files, as it is a potential security risk. > > You need to enable two PHP configuration parameters, > allow_url_fopen, which allows you to open a remote file > as if it were a local one, and allow_url_include, which > enables you to include remote PHP files to import code. > ;;;;;;;;;;;;;;;;;; > ; Fopen wrappers ; > ;;;;;;;;;;;;;;;;;; > > ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. > allow_url_fopen = On > allow_url_include = On > ... > > Listing 9. Creating a file on your Web server > > <? > require_once("http://sulaco.mcslp.pri:8080/JavaBridge/java/Java.inc"); > $System = new Java("java.lang.System"); > print_r($System->getProperties()); > ?> > > > Peter > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |