note 18390 deleted from language.variables.predefined by torben
| From: | torben@php.net | Date: | Thu, 24 Jan 2002 21:56:03 +0000 |
| Subject: | note 18390 deleted from language.variables.predefined by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25788@lists.php.net to get a copy of this message | ||
$HTTP_REFERER doesnt work anymore...
Just to save you some hassle if you are migrating your PHP-code to the safer PHP4.1:
if register_globals (PHP.ini) is off, $HTTP_REFERER doesnt work anymore, use <getenv
(HTTP_REFERER)> instead.
use <foreach ($_SERVER as $key => $val) echo ($key." =>
".$val."<br>");> to get a list of the new $_SERVER array, which is just
briefly mentioned in the change-notes.
I use <$_SERVER["HTTP_HOST"]> and <getenv (HTTP_REFERER)> to check,
whether visitors came from within my webpages.