Umm, I'm kinda new here so I'm not sure if this is the right place for that
kind of a question. But, you could easily include $_SERVER['SERVER_PORT'] in
there....
Source: http://php.net/manual/en/reserved.variables.server.php


On Mon, Sep 26, 2011 at 3:30 PM, Chen Xu <xuche...@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".
>
> Could anyone please help?
>
> --
> ⚡ Chen Xu ⚡
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to