|
From: <php...@li...> - 2008-12-30 22:30:45
|
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 |