Standard Posted by CODEUPWEB Posted on October 11, 2017 Posted under PHP Comments Leave a comment How to get the full URL of page using PHP Here is the block of code which will give the full url of the page: $page_url = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; Advertisements Share this:TweetShare on TumblrPocketLike this:Like Loading... Related PHPPHP Tutorial Post navigation ← How to remove default text in textarea of ckeditor How to encrypt/change the name of file when uploading in CI to avoid overwriting → Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Google+ account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) w Cancel Connecting to %s Notify me of new comments via email.