echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];

Get Current url in wordpress, joomla and javascript:
http://www.7tech.co.in/php/get-url-of-current-page-php-wordpress/

Advertisements