RE: [PHP] determining script url
| From: | Martin Towell | Date: | Fri, 08 Feb 2002 04:39:01 +0000 |
| Subject: | RE: [PHP] determining script url | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-83967@lists.php.net to get a copy of this message | ||
I think what'll you'll need to do is look through the phpinfo() output and
piece together all the parts, eg $HTTP_HOST (or should that be
$_HTTP["HOST"] ?), $PHP_SELF, etc.
If anyone knows of a better way, I'd like to know too
Martin
-----Original Message-----
From: sean@interconnect.is.it [mailto:sean@interconnect.is.it]
Sent: Friday, February 08, 2002 3:37 PM
To: php-general@lists.php.net
Subject: [PHP] determining script url
Hi all,
How can I get the full URL of the currently running script? $DOCUMENT_ROOT
is not what I need, instead I need the url (be it domain if exists, or ip if
not). $SERVER_NAME works but if a domain isn't paired with the server, I
could get some useless information (right?).
Thanks,
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php