search

Home  >  Q&A  >  body text

I haven’t learned this before and don’t understand it.

$_SERVER['PHP_SELF']; I don’t know what the following PHP_SELF means

⁴₈³₆᭄ꦿ⁴₈³₆᭄ꦿ1825 days ago1353

reply all(4)I'll reply

  • Chen

    Chen2022-01-04 15:39:02

    $_SERVER['PHP_SELF'] The file name of the currently executing script, related to the document root.

    For example, using $_SERVER['PHP_SELF'] in a script at http://example.com/test.php/foo.bar will result in /test.php/foo.bar.

    https://www.runoob.com/php/php-superglobals.html

    reply
    0
  • ⁴₈³₆᭄ꦿ

    ⁴₈³₆᭄ꦿ2022-01-04 15:38:12

    OK, thanks

    reply
    0
  • Chen

    Chen2022-01-04 15:37:32

    $_SERVER['PHP_SELF']

    The file name of the currently executing script is related to the document root.

    For example, using $_SERVER['PHP_SELF'] in a script at http://example.com/test.php/foo.bar will result in /test.php/foo.bar.

    https://www.runoob.com/php/php-superglobals.html

    reply
    0
  • 像风一样自由

    像风一样自由2020-01-06 21:10:10

    This is a fixed parameter, just remember it

    reply
    0
  • Cancelreply