Re: Question concerning hostnames

From: Date: Tue, 25 Feb 2003 13:37:19 +0000
Subject: Re: Question concerning hostnames
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25907@lists.php.net to get a copy of this message
php@2b4ever.net (2b4ever Php) writes: > I want http://www.pageTwo.com to be redirected to > http://www.pageOne.com/pageTwoindex.html, without losing the > address > http://www.pageTwo.com. Maybe something like header("location: http://www.pageOne.com/pageTwoindex.html?ref=http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"]); on http://www.pageTwo.com Then $_GET["ref"] will contain the referers url provided http://www.pageOne.com/pageTwoindex.html is a PHP file. If you just want it for logging purposes, the url will still be saved in the server log (at least if you use apache). -- --Fredrik In an organization, each person rises to the level of his own incompetency -- The Peter Principle

« previous php.db (#25907) next »