From: <php...@li...> - 2015-08-03 08:20:17
|
Hi, I encounter one problem when I use php-java-bridge to get value of _SERVER['REQUEST_URI']. Could some one help me ? My test url is "http://192.168.94.81:8080/monitor/index.php/graph?host=localhost&srv=Local_CPU_Temperature&view=0" , So the expect value for $_SERVER['REQUEST_URI'] should be "/monitor/index.php/graph?host=localhost&srv=Local_CPU_Temperature&view=0", but the actual value printed was "/monitor/index.php?host=localhost&srv=Local_CPU_Temperature&view=0" , How could I get the right value I want ? The web.xml for phpcgiservlet is : <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <init-param> <param-name>prefer_system_php_exec</param-name> <param-value>On</param-value> </init-param> <init-param> <param-name>php_include_java</param-name> <param-value>On</param-value> </init-param> <init-param> <param-name>php_request_uri_is_unique</param-name> <param-value>off</param-value> </init-param> </servlet> No matter the value of "php_request_uri_is_unique" is "on" or "off", I could not get the right value I want, Is there some other setting ? Additionally, the value of _SERVER["PHP_SELF"] and _SERVER["QUERY_STRING"] are right, so I get right URI value by these 2 paramters, but I want to know why I do not get the right value for _SERVER['REQUEST_URI']. Thanks and Regards, -Chao Ma |