Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] HTTP_ACCEPT ...?



Odd.  It would seem that the server you are running that script on is not setting HTTP_ACCEPT.  You can check out more detail by just writing a quick script to call 'phpinfo()' and check the PHP variables down the bottom (ie: _SERVER["HTTP_ACCEPT"].

Ryan

On Fri, Apr 11, 2008 at 10:44 AM, Dave M G <martin@example.com> wrote:
TLUG,

On one web hosting server where I'm running some PHP scripts, I keep getting an error that says:

Undefined index:  HTTP_ACCEPT

I look for $_SERVER[HTTP_ACCEPT] as part of a script that tests to see if the browser is a mobile device or not. The code was partially taken from examples on the web.

I don't get the error on other servers, so I'm wondering if it's something that varies between servers?

Am I even making sense?

Any advice would be helpful.

--
Dave M G
http://www.tlug.jp/wiki/User:Dave_M_G

--
To unsubscribe from this mailing list, please see the instructions at http://www.tlug.jp/list.html

Please visit our sponsor at http://www.primustel.co.jp/tlug/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links