|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-25 19:52 UTC] iliaa@php.net
[2004-01-25 23:41 UTC] it_chan at hotmail dot com
[2004-01-25 23:53 UTC] it_chan at hotmail dot com
[2004-01-26 02:21 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 19:00:01 2025 UTC |
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