How do I enable $_SERVER['HTTP_X_WAP_PROFILE'] or $_SERVER['HTTP_PROFILE']

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

 



I'm working on a mobile site and from the various searches and reading (and
even code fragments I've inherited for the project), they make reference to:

$_SERVER['HTTP_X_WAP_PROFILE'] and a fallback $_SERVER['HTTP_PROFILE']

However, when I hit a phpinfo(); page using both an Android MyTouch 3G (2.2)
and an Apple iPhone 3G, there are nothing even close to those. All of the
'HTTP_X_*' headers are absent and there is no HTTP_PROFILE either.

http://www.dpinyc.com/literature/resources/code-bank/php-lightweight-device-
detection/
http://mobiforge.com/developing/blog/useful-x-headers
http://blog.svnlabs.com/tag/_serverhttp_x_wap_profile/


Do I need to enable something in Apache or PHP??

PHP Version 5.3.6
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans

and 

$ httpd -v
Server version: Apache/2.2.17 (FreeBSD)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux