I'd like on PHP get the requested URI.
I mean to store into $address
the string www.mywebsite.com/index.php?param=1
for example.
Thanks
I'd like on PHP get the requested URI.
I mean to store into $address
the string www.mywebsite.com/index.php?param=1
for example.
Thanks
The path without domain name is stored in $_SERVER['REQUEST_URI']
. In your case, it would be /index.php?param=1
.