I am using following code to get the current URL
$current_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
Is there any other way to get the same, or may be better way to get current URL?
Thanks.
See Question&Answers more detail:os