From: <php...@li...> - 2017-04-07 05:39:30
|
I have one web-server - tomcat, and PHP interpreter. I want to run PHP scripts through Tomcat. And I can do it, it's all right. My error is 'fsockopen(): unable to connect to :0 (Failed to parse address"")' I already told you about it. In PHP I describe global http values $_GET and $_POST and try to get them in different ways. My script is able to get $_POST, but it is not able to get $_GET, because Tomcat give the error, when I appeal to the server by address /index.php?a=5, and in the body of my script I call $_GET['a']. The server give the error, and I don't know what to do. I want to get $_GET['a'], аbut I get only the error. 05.04.2017, 16:42, "php...@li..." <php...@li...>: > Without knowing more detail of what you are doing ... Difficult to say. > > From the quote below the error is in PHPDebugger, not in any of your code. > > Javbridge is a bunch of different things for different people. It allows > calling of Java from PHP in a couple of different setups, and it also > allows Java to invoke php scripts in a servlet environment like Tomcat. > > What have you got /trying to get? > Tomcat running an instance of JavaBridge - where you are deploying PHP > apps into the Tomcat instance? > Tomcat running an instance of JavaBridge - and a separate Apache / Web > server instance running php from which you are trying to call java? > Stand alone JavaBridge servlet instance running - and a separate Apache > / Web server instance running php from which you are trying to call java? > > php...@li... wrote: >> Hello,I faced with a problem of execution Php scripts. I may not give arguments to them through address bar (like localhost/index.php?what=that), because if I do it the server returns to me the next error 'HTTP Status 500 - java.lang.RuntimeException: PHP Warning: fsockopen(): unable to connect to :0 (Failed to parse address"") in C:\Users\Eugene\Ubiquiti UniFi\webapps\ROOT\java\PHPDebugger.php on line 845'.How I can repare it? Thanks for your attantion! >> >> -- >> С Ув. Qia >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users -- С Ув. Qia |