Re: How do I get referer in php?

From: Date: Wed, 17 Nov 2004 21:38:22 +0000
Subject: Re: How do I get referer in php?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-202342@lists.php.net to get a copy of this message
John Holmes wrote:
M. Sokolewicz wrote:
Chris W. Parker wrote:
echo "<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.
I'm sure he meant echo '<pre>',print_r($_SERVER,1),'</pre>'; then... ;) hadn't noticed that param... I feel ashamed... :$


« previous php.general (#202342) next »