Osiris Sistemas en Informática
|
| Posted: 01/21/2008, 7:07 AM |
|
Dear friends:
I try to do an include page "tell a friend", but i need to know the actual
URL in a variable.
Anybody knows some CCS or PHP command to do this?
Thanks in advance
Cheers
Osiris
|
|
|
 |
datadoit
|
| Posted: 01/21/2008, 1:23 PM |
|
http://us3.php.net/manual/en/reserved.variables.php
|
|
|
 |
Osiris Sistemas en Informática
|
| Posted: 01/21/2008, 3:04 PM |
|
Thanks a lot i think this is..
Cheers
Osiris
"datadoit" <datadoit@forum.codecharge> escribió en el mensaje
news:fn32hc$f5q$1@news.codecharge.com...
> http://us3.php.net/manual/en/reserved.variables.php
|
|
|
 |
feha
Posts: 712
|
| Posted: 01/28/2008, 10:38 PM |
|
Hi
you can get with this function:
function full_url()
{
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = substr(strtolower($_SERVER["SERVER_PROTOCOL"]), 0, strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "/")) . $s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol . "://" . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI'];
}
hope this helps 
_________________
Regards
feha
www.vision.to
feedpixel.com |
 |
 |
Osiris Sistemas en Informática
|
| Posted: 01/29/2008, 8:56 AM |
|
Thanks a lot feha:
i think is just the piece of code i'm looking for
Cheers...
Osiris
"feha" <feha@forum.codecharge> escribió en el mensaje
news:5479ec9d14b29d@news.codecharge.com...
> Hi
>
> you can get with this function:
>
>
> function full_url()
> {
> $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" :
> "";
> $protocol = substr(strtolower($_SERVER["SERVER_PROTOCOL"]), 0,
> strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "/")) . $s;
> $port = ($_SERVER["SERVER_PORT"] == "80") ? "" :
> (":".$_SERVER["SERVER_PORT"]);
> return $protocol . "://" . $_SERVER['SERVER_NAME'] . $port .
> $_SERVER['REQUEST_URI'];
> }
>
>
> hope this helps 
>
> _________________
> Regards
> feha
> Vision.To Design
> www.vision.to
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |