note 81766 deleted from function.dirname by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 19:00:20 +0000 |
| Subject: | note 81766 deleted from function.dirname by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142253@lists.php.net to get a copy of this message | ||
Note Submitter: slsoek at yahoo dot com
----
This will get you the complete Url:
$url = (($_SERVER['SERVER_PORT'] == "80") ? "HTTP" :
"HTTPS")."://".$_SERVER['HTTP_HOST'].(($_SERVER['QUERY_STRING'])
? ($_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']) :
($_SERVER['PHP_SELF']));
echo $url;