RE: [PHP] How do I get referer in php?
| From: | Zareef Ahmed | Date: | Thu, 18 Nov 2004 04:02:12 +0000 |
| Subject: | RE: [PHP] How do I get referer in php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202377@lists.php.net to get a copy of this message | ||
Hi
use
Print $_SERVER['HTTP_REFRER'];
But some time browser do not send it properly so please check it with
another browser if fails.
Zareef Ahmed
-----Original Message-----
From: John Holmes [mailto:holmes072000@charter.net]
Sent: Thursday, November 18, 2004 3:39 AM
Cc: php-general@lists.php.net
Subject: Re: [PHP] How do I get referer in php?
John Nichel wrote:
> M. Sokolewicz wrote:
>
>>> I'm sure he meant
>>>
>>> echo '<pre>',print_r($_SERVER,1),'</pre>';
>
> ---^ ---^
>
>>> then... ;)
>>>
>> hadn't noticed that param... I feel ashamed... :$
>>
> Didn't notice that those were commas and not periods either, eh? ;)
Didn't notice the result is the same either way, eh? ;)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals - www.phparch.com
--
------------------------------------------------------------------------
--
Zareef Ahmed :: A PHP develoepr in Delhi ( India )
Homepage :: http://www.zasaifi.com