get data from URL without having variables

This question already has an answer here:

  • Get the full URL in PHP 28 answers

  • The superglobal $_SERVER['PATH_INFO'] contains all the parts of the URL path after the script. So if the user goes to:

    welcom.com/index.php/NewYork-NY/Driver
    

    $_SERVER['PATH_INFO'] will contain /NewYork-NY/Driver .

    链接地址: http://www.djcxy.com/p/42300.html

    上一篇: 如何检查在Python中的文件大小?

    下一篇: 从URL获取数据而不需要变量