note 37656 added to reserved.variables
| From: | developeratstrictlyrockymountaindotcom at rn2 dot php dot net | Date: | Fri, 21 Nov 2003 23:50:59 +0000 |
| Subject: | note 37656 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60786@lists.php.net to get a copy of this message | ||
Dear PHP, it would be incredibly helpful if I could get several variables added together.
For instance, right now I have to do this in order to get the full Requested Address:
if ($_SERVER['HTTPS'] == "on")
$http = "https://";
else
$http = "http://";
$requested_uri = $http.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
OR
$requested_uri =
$http.$_SERVER["SCRIPT_URI"]."?".$_SERVER["QUERY_STRING"];
Which is longer than the first.
Can you give me a single variable for this like:
$_SERVER["FULL_URI"] ??
Which includes the http:// or https:// without having
to test for $_SERVER["HTTPS"] == on?
Thanks so much, I think it would help out the community as a whole.
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37656
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37656&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37656&report=yes
Search -- http://master.php.net/manage/user-notes.php