What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']?

前端 未结 4 976
闹比i
闹比i 2020-12-16 21:32

What’s the difference between $_SERVER[\'PATH_INFO\'] and $_SERVER[\'ORIG_PATH_INFO\']? How do I use them?

When I run print_r($_SERVE

4条回答
  •  自闭症患者
    2020-12-16 22:09

    try this :

    $path_info = !empty($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : (!empty($_SERVER['ORIG_PATH_INFO']) ? $_SERVER['ORIG_PATH_INFO'] : '');
    

提交回复
热议问题