note 38334 added to ref.url

From: Date: Wed, 17 Dec 2003 08:25:08 +0000
Subject: note 38334 added to ref.url
Groups: php.notes 
Request: Send a blank email to php-notes+get-62104@lists.php.net to get a copy of this message
Following method do not show the URL in user browser (as the author claimed) if the code resides in the source page of FRAME or IFRAME (say SRC="sourcepage.php") . In that case the URL of the SOURCE page is displayed. $url = sprintf("%s%s%s","http://",$HTTP_HOST,$REQUEST_URI); echo "$url"; Expected result: http://localhost/urltest/framedpage.php Actual result: http://localhost/urltest/sourcepage.php ---- Manual Page -- http://www.php.net/manual/en/ref.url.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38334 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38334&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38334&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62104) next »