Re: Is it possible to get the whole address (including http:// ) ?
| From: | Jason Barnett | Date: | Thu, 21 Apr 2005 13:39:04 +0000 |
| Subject: | Re: Is it possible to get the whole address (including http:// ) ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213563@lists.php.net to get a copy of this message | ||
Labunski wrote:
> Hello,
>
> I know for example how to get http vars or basename, but this time I need to
> get the whole address, including http:// .
>
> Is it possible?
>
>
> Thanks in advance,
> Lab.
http://php.net/reserved.variables
<?php
var_dump($_SERVER['REQUEST_URI']);
?>
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc