Re: Url string
| From: | jeremy brand | Date: | Tue, 07 Nov 2000 19:13:43 +0000 |
| Subject: | Re: Url string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24159@lists.php.net to get a copy of this message | ||
$p = '';
if ($SERVER_PORT == 80)
$h = 'http://';
else if ($SERVER_PORT = 443)
$h = 'https://';
else
{
$h = 'http://';
$p = ':' . $SERVER_PORT;
}
$string = $h . $SERVER_NAME . $p . $REQUEST_URI;
_enjoy_
-jeremy brand
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
---------------------------------------------------------------------
We cannot do everything at once, but we can do something at once.
-- Calvin Coolidge
On Wed, 8 Nov 2000, Adi Wibowo wrote:
> Date: Wed, 8 Nov 2000 02:06:38 +0700 (GMT+0700)
> From: Adi Wibowo <adiw@peter.petra.ac.id>
> To: php-general@lists.php.net
> Subject: [PHP] Url string
>
>
> How could we get url string for the page displayed?
>
> I know on javascript we could get this by using object location.href.
> But could we passing javascript variable to php variable?
>
>
> Adi Wibowo -------------------------------
> * Work matter : adiw@peter.petra.ac.id
> * Private matter : adiwibowo@excite.com
> ------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>