Page 1 of 1

Showing Website URL?

Posted: Sun Jul 10, 2005 10:18 pm
by Mr Tech
How can I create a file I can just upload to any directory or domain and have it pull the url from the address bar to display on the webpage. It needs to eb the FULL url.

Thanks

Like this?

Posted: Sun Jul 10, 2005 10:27 pm
by neophyte

Code: Select all

<?php echo 'http://'.$_SERVER&#1111;'SERVER_NAME'].$_SERVER&#1111;'REQUEST_URI']; ?>

Posted: Sun Jul 10, 2005 10:30 pm
by Mr Tech
Thanks for the quick response!

Posted: Mon Jul 11, 2005 4:37 am
by timvw