note 10834 added to Predefined variables
| From: | eric at themepark dot com | Date: | Tue, 23 Jan 2001 03:05:05 +0000 |
| Subject: | note 10834 added to Predefined variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10169@lists.php.net to get a copy of this message | ||
So to get the complete URL of the current page (under an Apache server, and maybe others):
echo "http://".$HTTP_HOST.$PATH_INFO;
http://www.php.net/manual/en/language.variables.predefined.php