Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- $_SERVER['HTTP_HOST'] weird browser problem
September 1, 2006, 5:28 am
rate this thread
subdomain I am on, it works fine in Firefox and not in IE. Doing some
debugging, I found that the string returned was empty for IE, but had
the expected subdomain in Firefox.
I found the same to be true for $_SERVER['SERVER_NAME']
Any idea on how to resolve the issue? I thought that the PHP would be
browser independent since it is processed server-side, but it seems
like IE is not passing headers?
- Luke - eat.lemons
September 1, 2006, 2:08 pm
- Alvaro G. Vicario
September 2, 2006, 9:49 am
Re: $_SERVER['HTTP_HOST'] weird browser problem
Have you enabled display_errors and set error_reporting to E_ALL? Are you
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com