php self to include full url

Associate
Joined
11 Oct 2008
Posts
268
I am trying to include my full url on my site. example /index.php?page=demo



On my local server this bit of code worked fine.



$active = "$_SERVER[REQUEST_URI]";



however on my live server it returns blank, i think maybe due to the fact that its a windows server ?



php self works, but only returns index.php and not the full ?page=demo url

$active = ($_SERVER['PHP_SELF']);



does anyone know how i can work around this?



Thanks
 
Back
Top Bottom