multichild — 2012-02-27T08:39:53-05:00 — #1
I am trying ot grab the FULL url but only seem to be able to grab the first bit, everything after ? I cant seem to grab.
Here is my full path:
here is what Im getting:
and here is my code:
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
Cheers before hand.
starlion — 2012-02-27T08:44:18-05:00 — #2
$SERVER['REQUESTURI'] SHOULD have the query string attached. It seems that it isnt though.
$SERVER['QUERYSTRING'] will contain the rest. (But not the ?. You'll have to insert that yourself)
multichild — 2012-02-27T08:49:32-05:00 — #3
Right I see, OK have added what I need after the ? and its working great.
Cheers for getting back to me
john_betong — 2012-02-27T10:10:27-05:00 — #4
Try this to get the all the other Server settings:
print_r( $_SERVER );