Re: How do I get referer in php?
| From: | M. Sokolewicz | Date: | Wed, 17 Nov 2004 21:09:54 +0000 |
| Subject: | Re: How do I get referer in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202339@lists.php.net to get a copy of this message | ||
Chris W. Parker wrote:
Brent Clements <mailto:bclem@imaginative-enterprises.com>on Wednesday, November 17, 2004 11:55 AM said:Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php?Yes, and more. <?php 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.