问答详情
源自:3-4 显示简单的分页条

$_SERVER['PHP_SELF']返回的是URI

请问老师,$_SERVER['PHP_SELF']返回的是URI,还有什么方式可以获取当前页面的名字吗?

提问者:duolaa 2015-12-15 15:40

个回答

  • placeless
    2015-12-24 17:00:38

    ["SERVER_PORT"]=>    

    string(5) "63342"    

    ["SERVER_ADDR"]=>    

    string(9) "127.0.0.1"    

    ["SERVER_NAME"]=>    

    string(15) "PhpStorm 10.0.2"    

    ["SERVER_SOFTWARE"]=>    

    string(15) "PhpStorm 10.0.2"    

    ["REMOTE_PORT"]=>    

    string(5) "54581"    

    ["REMOTE_ADDR"]=>    

    string(9) "127.0.0.1"    

    ["REQUEST_METHOD"]=>    

    string(3) "GET"    

    ["REQUEST_URI"]=>    

    string(20) "/EasyPage/mypage.php"    

    ["FCGI_ROLE"]=>    

    string(9) "RESPONDER"    

    ["PHP_SELF"]=>    

    string(20) "/EasyPage/mypage.php"    

    ["REQUEST_TIME_FLOAT"]=>    

    float(1450947561.5371)    

    ["REQUEST_TIME"]=>    

    int(1450947561)