URL alias in page.tpl.php I try to make link 'Mobile version' on site page site.com/page. This link leads to this page but on subdomain m.site.com/page. 
I use page.tpl.php. I try to write this.

&lt;a href="http://m.site.com/&lt;?php print drupal_get_path_alias();?&gt;"&gt;Mobile version&lt;/a&gt;


&lt;?php print drupal_get_path_alias();?&gt; prints nothing. What's wrong? Maybe there is some more elegant and right way to solve this?
Your code only work for Drupal 7. As you are using Drupal 6, please pass the current url as argument.

print drupal_get_path_alias($_GET['q']);