Re: Question about losing port number.
People, this is DJANGO user list, not PHP user list... Go to the right place (and you will get more help). Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chronossc 2011/9/26 Chen Xu > Thx, but $_SERVER['SERVER_PORT'] doesn't give me 9090, it gives me 80. > > > On Mon, Sep 26, 2011 at 12:33 PM, Kurtis Mullins > wrote: > >> 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 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. >> > > > > -- > ⚡ 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.
Re: Question about losing port number.
Thx, but $_SERVER['SERVER_PORT'] doesn't give me 9090, it gives me 80. On Mon, Sep 26, 2011 at 12:33 PM, Kurtis Mullins wrote: > 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 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. > -- ⚡ 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.
Re: Question about losing port number.
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 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.
Re: Question about losing port number.
I think you might be on the wrong mailing list… There's no PHP around these parts ;) On Monday, September 26, 2011 at 3:30 PM, Chen Xu 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 > (mailto:django-users@googlegroups.com). > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > (mailto: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.
Question about losing port number.
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.