Re: Question about losing port number

From: Date: Mon, 26 Sep 2011 22:54:00 +0000
Subject: Re: Question about losing port number
Groups: php.general 
Request: Send a blank email to php-general+get-315033@lists.php.net to get a copy of this message
On 26 Sep 2011 at 23:45, vince chan <rainmanvc@gmail.com> wrote: > I have a general question about PHP: > So basically I have a link, and I want the href to be absolute., so I > do 'https://' . $_SERVER['HTTP_HOST'] . > '/login' ; this gives me > https://127.0.0.1/login on my local; however, what i really > want is > https://127.0.0.1:9090/login, it is missing ":9090". > I also have tried to > use $_SERVER['SERVER_PORT'], but $_SERVER['SERVER_PORT'] doesn't > give me > 9090, it gives me 80. Where does the 9090 come from? -- Cheers -- Tim

« previous php.general (#315033) next »