Re: Url string

From: Date: Tue, 07 Nov 2000 19:16:39 +0000
Subject: Re: Url string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24161@lists.php.net to get a copy of this message
correction: > else if ($SERVER_PORT = 443) should be: > else if ($SERVER_PORT == 443) ------ LOOK! -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 Tue, 7 Nov 2000, jeremy brand wrote: > Date: Tue, 7 Nov 2000 11:13:43 -0800 (PST) > From: jeremy brand <jeremy@nirvani.net> > To: Adi Wibowo <adiw@peter.petra.ac.id> > Cc: php-general@lists.php.net > Subject: Re: [PHP] Url string > > $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 > > > > > > > -- > 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 > >

« previous php.general (#24161) next »