From: <php...@li...> - 2011-06-04 15:57:17
|
Hi, I am newbie to PHP Java Bridge. I have installed the bridge and configured it properly (can run the examples etc). But when I try to connect my PHP script (running on apache) to connect to php Java bridge, this is the error I get. Warning: pfsockopen() [function.pfsockopen]: unable to connect to @java-bridge-dbc:0 (Failed to parse address "@java-bridge-dbc") in /var/www/java/Java.inc on line 1220 This my PHP code: <?php define ("JAVA_HOSTS", "http://127.0.0.1:8080"); define ("JAVA_SERVLET", "/JavaBridge/servlet.phpjavabridge"); require_once("Java.inc"); //require_once("http://localhost:8080/JavaBridge/java/Java.inc"); $s = new Java("java.lang.String", "hello"); echo $s; ?> It would be great if somebody could help me with this issue. I think its a 'hostname' resolution issue, but where do I define my hosts. Any help/pointers would be of great help. -- Thanks & Regards Nikhil Kumar Gupta |