note 49865 added to reserved.variables
| From: | grlprgrmmrusesgmail at osu1 dot php dot net | Date: | Thu, 10 Feb 2005 19:05:17 +0000 |
| Subject: | note 49865 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84808@lists.php.net to get a copy of this message | ||
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'];}
?>
If $_SERVER['HTTPS']=='on' does not work for you,
try $_SERVER['SERVER_PORT']==443 (or whatever secure port is used)
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49865
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49865&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49865&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49865&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49865&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49865&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49865&report=yes
Search -- http://master.php.net/manage/user-notes.php