CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 how to know the actual url

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.