[thelist] Function for listing a page's URL

misterhaan misterhaan at track7.org
Thu Feb 10 12:20:09 CST 2005

You can print the full URL of the current page using this PHP code:

http://<?=$_SERVER['HTTP_HOST']; ?><?=$_SERVER['REQUEST_URI']; ?>

Dominick Cancilla wrote:

>I'd like to add a function to my Website's footer that would list the page's
>URL (as a reminder to credit the page if it is quoted elsewhere). My server
>is capable of PHP, but I don't know a darned thing about it. Is there a PHP
>or Javascript method for doing what I want? Or something else I'm
>I've poked around on Google for this, but have had no luck (I may not be
>searching for the right thing).
>The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee.
>Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized.
>If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(A)

More information about the thelist mailing list