Re: How do I get referer in php?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris W. Parker wrote:
Brent Clements <mailto:bclem@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
    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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux