天天看點

關于$PHP_SELF

在PHP使用了$PHP_SELF函數時,出現以下錯誤

Undefined variable: PHP_SELF。。。。。。第幾行

打開php.ini 檔案設定 register_globals = on

通常這個檔案位于C:/windows目錄下

The website that told you to use $PHP_SELF is severely out of date. Instead, use $_SERVER['PHP_SELF']