Re: How do I get referer in php?
| From: | John Holmes | Date: | Wed, 17 Nov 2004 21:17:24 +0000 |
| Subject: | Re: How do I get referer in php? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202340@lists.php.net to get a copy of this message | ||
M. Sokolewicz wrote:
Chris W. Parker wrote:I'm sure he meant echo '<pre>',print_r($_SERVER,1),'</pre>'; then... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.comecho "<pre>",print_r($_SERVER),"</pre>";why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even more, it adds to confusion because of a '1' appearing all of a sudden on screen.