note 52634 added to reserved.variables

From: Date: Sat, 07 May 2005 18:32:49 +0000
Subject: note 52634 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-89086@lists.php.net to get a copy of this message
To display the url of a page (like the one in the address bar) you can use this script: <?php echo "http://"; echo $_SERVER['HTTP_HOST']; //outputs sitename.com etc echo $_SERVER['REQUEST_URI']; //outputs /index.php etc ?> This could be used in a login script to redirect the user back to the page they logged in from instead of the index ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52634 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52634&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52634&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52634&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52634&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52634&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52634&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89086) next »