View previous topic :: View next topic |
Author |
Message |
jvoni -
Joined: 15 May 2003 Posts: 9
|
Posted: Tue Jan 20, 2004 8:31 am Post subject: Pocket PC Browser Detection. HOW??? |
|
|
I am developing a site which will primarily be accessed on either a POCKET PC[PPC] (with Pocket internet Explorer [pie]) or a PC with IE. Bandwidth MUST be kept to a minimum for the PPC. How can I detect if it is a PPC accessing my site. PIE does not allow for scripting in the version I am developing for. Is there a way that Abyss can detect the browser? Or perhaps a PHP method? I would appreciate any possible suggestions.
JvonI |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Jan 20, 2004 2:46 pm Post subject: Re: Pocket PC Browser Detection. HOW??? |
|
|
jvoni,
You must use a script to inspect the value of the User-Agent header (in PHP, you can get it using the variable $_SERVER['HTTP_USER_AGENT']).
A full list of User-Agent values per browser is available at
http://www.zytrax.com/tech/web/browser_ids.htm . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
jvoni -
Joined: 15 May 2003 Posts: 9
|
Posted: Tue Jan 20, 2004 5:01 pm Post subject: |
|
|
Thanks. That pointed me in the right direction. Got things working for me. I appreciate the promptness of your reply.
JvonI |
|
Back to top |
|
 |
jvoni -
Joined: 15 May 2003 Posts: 9
|
Posted: Wed Jan 21, 2004 5:58 am Post subject: |
|
|
OKay the script I have works, but I need to distinguish between pocket internet explorer and internet explorer on a pc. Pocket PC internet explorer (2003) registers as internet explorer 4 or greater. Is there a way I can distinguish the platform it is running from?
JvonI |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jan 22, 2004 12:04 pm Post subject: |
|
|
jvoni,
You must distinguish them using the operating system part in the browser ID string (Windows CE or other). IMHO, this is the best and safer method. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|