|
From: <php...@li...> - 2007-06-21 23:02:17
|
Hello, I'm using php-java-bridge 4.1.2 (downloaded the binary release). Then I copied both PhpJavaServlet.jar and php_servlet.jar to the lib directory in my J2EE WAR, I also copied the PHP resources from the /java directory (for the pure PHP implementation). I'm using JBoss 4.0.4 as application server together with Java 1.5_11. I modified my web.xml to expose the PhpJavaServlet. This all works really great and very fast using PHP4 with the (legacy) java.so module and also with PHP5 and the pure PHP implementation. But now I want to connect to the same PhpJavaServlet from my local computer to this remote server (for testing purposes). How do I enable HTTP tunneling? As far as my knowledge goes, I cannot use sockets to a remote server. I tried to use "promiscuous" and also messed around with "php.java.bridge.no_pipe_server", but this didn't work out. Looking at the source code I also cannot tell when HTTP tunneling is used. It should call the method named "handleHttpConnection()", but it is never called. My question, is it possible to connect to my remote server from my local computer? (I do not care about the speed, just for testing). Any ideas? |