开发者

PHP predefined variable storing Url

开发者 https://www.devze.com 2023-02-18 02:51 出处:网络
Even if they are quite different I\'m going to compare to php predefined variables: $_SERVER[\'HTTP_REFERRER\']

Even if they are quite different I'm going to compare to php predefined variables:

$_SERVER['HTTP_REFERRER']

$_SERVER['PHP_SELF']
  • the first is giving me the 'previous page' including the GET parameters (Ex.开发者_运维知识库 mypage.php?id=1)

  • the second one is returning let's say the 'barebone' structure of the url (Ex.mypage.php)

IS THERE ANY WAY I CAN STORE THE CURRENT PAGE PLUS THE GET PARAMETERS?

thanks

Luca


You want $_SERVER["REQUEST_URI"].

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号