Re: getenv ? get the url the user is trying to reach
| From: | Daniel Convissor | Date: | Mon, 31 Jul 2000 21:46:45 +0000 |
| Subject: | Re: getenv ? get the url the user is trying to reach | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9301@lists.php.net to get a copy of this message | ||
Melissa Anderson wrote:
>
> I would like to build a php page that displays info based on the url that
> the user is trying to reach ...I have been told that getenv() will get that
> information but I have been unable to find documentation specific enough.
$URL = "http://" . getenv("HTTP_HOST") .
ereg_replace( "[^!#-9:;=?-Z_a-z~]",
"", substr(getenv("REQUEST_URI"), 0, 200) );
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409