#### Archived

This topic is now archived and is closed to further replies.

# how to get the current URL of the current page?

## Recommended Posts

ok,

let say i have a web page namely mypage1.php

now also let say we are currently in mypage1.php,
how could i get its current URL, using PHP?

##### Share on other sites
hii ,
just try

[/code]

##### Share on other sites
And if you want the full http for use in a link (e.g. in an email):