Re: fetching current pages url string
| From: | Lee Willis | Date: | Mon, 04 Sep 2000 11:57:09 +0000 |
| Subject: | Re: fetching current pages url string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15101@lists.php.net to get a copy of this message | ||
"Rick Moynihan" <rick.moynihan@mclsoftware.co.uk> writes:
> I'm trying to find a function (or constant/variable) which will either
> return or contain the current pages url. By this I mean if the user views a
> page www.website.com/page.php3 the function/variable will give the string
> 'www.website.com/page.php3'.
> Does anyone know how to do this?
$this_url = $SERVER_NAME."/".$PHP_SELF;
Lee
--
| Lee Willis Fixed cost Internet access available @
| Application Developer http://www.plus.net
| PlusNet Technologies Ltd
+---------------"PlusNet - The smarter way to Internet"----------------