ID: 27041 Updated by: [EMAIL PROTECTED] Reported By: it_chan at hotmail dot com -Status: Feedback +Status: Bogus Bug Type: HTTP related Operating System: windows xp/redhat 7.3 PHP Version: 4.3.4 New Comment:
bogusing Previous Comments: ------------------------------------------------------------------------ [2004-01-25 19:52:38] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Only the browser can send that header. ------------------------------------------------------------------------ [2004-01-25 19:42:59] it_chan at hotmail dot com Description: ------------ A web page (a.php) has a link to (b.php), when the link is clicked I want to http referer in b.php to show that referer is some other x.php as if the link was on x.php. Reproduce code: --------------- # a.php <?php header('Referer: http://localhost.com/x.php', true); ?> <a href="/b.php"> check </a> #b.php <?php echo "referrer = " . $_SERVER['HTTP_REFERER']; ?> Expected result: ---------------- referrer = http://localhost/x.php Actual result: -------------- referrer = http://localhost/a.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27041&edit=1