$_SERVER['PHP_SELF']; 後面這個PHP_SELF,不懂什麼意思
自律出众,不自律出局
$_SERVER['PHP_SELF'] 目前執行腳本的檔名,與 document root 有關。
例如,在 http://example.com/test.php/foo.bar 位址的腳本中使用 $_SERVER['PHP_SELF'] 將會得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
好的 謝謝
$_SERVER['PHP_SELF']
目前執行腳本的檔名,與 document root 有關。
這是固定參數,記住就行了
$_SERVER['PHP_SELF'] 目前執行腳本的檔名,與 document root 有關。
例如,在 http://example.com/test.php/foo.bar 位址的腳本中使用 $_SERVER['PHP_SELF'] 將會得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
好的 謝謝
$_SERVER['PHP_SELF']
目前執行腳本的檔名,與 document root 有關。
例如,在 http://example.com/test.php/foo.bar 位址的腳本中使用 $_SERVER['PHP_SELF'] 將會得到 /test.php/foo.bar。
https://www.runoob.com/php/php-superglobals.html
這是固定參數,記住就行了