Yesterday, the file server in the group was reloaded, and the original server was reloaded by the grid. When PHP is installed, PHP4.1.2 is installed (originally PHP3). After installed, set Apache and discovered a question when visiting the original PHP program: The page is unable to pass the parameters. For example, in the JavaScript function in a PHP: Window.Location = "Test.php3? Param = aaa", but in Test.php3 echo "$ param"; but what is not printed. The previous PHP3 is completely normal. Just got online, in http://www.linuxaid.com.cn/forum/showdoc.jsp?m=1&i=133676, netizens: The mountain wings give the following explanation:
Global variables are available in PHP pseudo-instructions REGISTER_GLOBALS is set to ON. Before version 4.2, this is the default setting, and many PHP developers don't even realize such problems. However, starting from version 4.2, the default setting of Register_Globals is OFF, in which case the representation does not work properly because the variable is not created and initialized with the appropriate value. Another option is to use Import_Request_Variables (). Import_request_variables (GP, "Formval_"); Echo "Ship =". $ FORMVAL_SHIP;
After experimenting, it did solve the problem after the value of Register_Globals in php.ini. (But his Version 4.2 will be wrong.)