Re: Pulling data out of browser address bar

From: Date: Sun, 25 Aug 2002 00:10:26 +0000
Subject: Re: Pulling data out of browser address bar
Groups: php.general 
Request: Send a blank email to php-general+get-114009@lists.php.net to get a copy of this message
>Is there any way to tell what was typed in the browser to get to the >web page. >What I have is domain names that forward to a main domain and I >want to know what they typed in the browser to get to the main domain. > The way it is forwarded the browser retains what ever was typed >in the address bar. How can I pull what was typed into the address bar >this info into the web page. Maybe. Either the web-server is configured to provide that info or it isn't. If it isn't, PHP can't go snatching it. Luckily, *most* web-servers will provide that info in their out-of-the-box configuration. Build a sample page that has this in it: <?php phpinfo();?> Surf to it from two 'different' domain names. Do a "Find..." in your browsers to determine where your URL is stored. It's probably in several different variables. Test all your servers/domains to be sure they are configured the same way. Just because www1.example.com and www2.example.com do it doesn't mean www3.example.com will unless you've been a very Good Boy about configuring all servers exactly the same way. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#114009) next »