Possible duplicate:How to get the current full page URL in PHP
How can I get the url of the current page using php? Is there such a php function?
What I want to achieve:
<?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $url; ?>