這個沒學過沒看懂
⁴₈³₆᭄ꦿ
⁴₈³₆᭄ꦿ 2020-01-05 19:50:41
0
4
1375

$_SERVER['PHP_SELF'];  後面這個PHP_SELF,不懂什麼意思

⁴₈³₆᭄ꦿ
⁴₈³₆᭄ꦿ

自律出众,不自律出局

全部回覆(4)
Chen

$_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

⁴₈³₆᭄ꦿ

好的 謝謝

Chen

$_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

像风一样自由

這是固定參數,記住就行了

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板