PHP Exercises : Get the full URL
PHP : Exercise-22 with Solution
Write a PHP script to get the full URL.
<?php $full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo $full_url."\n"; ?>
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?