note 50077 added to reserved.variables

From: Date: Thu, 17 Feb 2005 11:30:42 +0000
Subject: note 50077 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-85156@lists.php.net to get a copy of this message
grlprgrmmr wrote: you can use these to reconstructed the current page url. <?php echo 'http'; if($_SERVER['HTTPS']=='on'){echo 's';} echo '://'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME']; if($_SERVER['QUERY_STRING']>' '){echo '?'.$_SERVER['QUERY_STRING'];} ?> ______________ the $_SERVER['SERVER_PORT'] part should be changed to $_SERVER['HTTP_HOST'] ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50077 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50077&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50077&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50077&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50077&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50077&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50077&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85156) next »