Hi,
I am trying to get the entire page URL as a string in PHP - so, if the requested URL is ./foo.php?arg1=test&arg2=test2
, I get "./foo.php?arg1=test&arg2=test2"
.
I know that I can get the ./foo.php
part from $_SERVER
and the variables from $_GET
, but I was wondering if there's an easy way to do it in just one fell swoop.
TIA.