note 61113 added to reserved.variables

From: Date: Thu, 26 Jan 2006 01:14:59 +0000
Subject: note 61113 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-102454@lists.php.net to get a copy of this message
In relation to Mr. Obvious' comment concerning using apache_request_headers() to get a more reliable referer. I don't believe this works as both it and PHP would be retrieving the information from the 'referer' header. All you would be doing by using apache_request_headers() is giving yourself more work. Some test code which shows that both are identical: <?php $host=apache_request_headers(); echo "\$host['Referer'] = {$host['Referer']}\n"; echo "\$_SERVER['HTTP_REFERER'] = {$_SERVER['HTTP_REFERER']}\n"; ?> You can edit the referer using a tool such as the LiveHTTPHeaders extension for Firefox. If there was a more accurate way of determining the referer, then PHP would most likely be doing it. ---- Server IP: 203.16.234.90 Probable Submitter: 202.89.174.138 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61113 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61113&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61113&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102454) next »