我被错误所困扰
directive 'register_globals' is no longer available in PHP in unknown on line 0
Run Code Online (Sandbox Code Playgroud)
register_globals在 php.ini 文件中启用后尝试使用“php -v”检查 php 版本时。这样做我没有得到任何 php 版本信息。相反,它会抛出上述错误。关闭此选项后,php info 运行良好。打开 register_globals 对我来说非常重要。我该如何纠正这个问题。
我php.ini的如下:
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://php.net/request-order
request_order = "GP"
; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user …Run Code Online (Sandbox Code Playgroud)