[PHP] NS4.x / IE3.0 Browser Detection
I need to differentiate between different versions of NS4, particularly the ones that are used by Mac. So far, I've used the following to detect variants: if(eregi((Mozilla/4.[0-8][0-9]),$_SERVER['HTTP_USER_AGENT'])) However, I'm aware that it will not distinguish between PC and Mac-based NS4. My question is: what versions of NS (if any) do Mac's use? I've used the following to detect IE3.0 users: if(eregi((mozilla/3.0),$_SERVER['HTTP_USER_AGENT'])) Is this correct? Any insights or advice most welcome. Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] NS4.x / IE3.0 Browser Detection
HTTP_USER_AGENT returns platform info as well doesn't it...?? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 10:10 AM To: [EMAIL PROTECTED] Subject: [PHP] NS4.x / IE3.0 Browser Detection I need to differentiate between different versions of NS4, particularly the ones that are used by Mac. So far, I've used the following to detect variants: if(eregi((Mozilla/4.[0-8][0-9]),$_SERVER['HTTP_USER_AGENT'])) However, I'm aware that it will not distinguish between PC and Mac-based NS4. My question is: what versions of NS (if any) do Mac's use? I've used the following to detect IE3.0 users: if(eregi((mozilla/3.0),$_SERVER['HTTP_USER_AGENT'])) Is this correct? Any insights or advice most welcome. Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NS4.x / IE3.0 Browser Detection
From: Andre Dubuc [EMAIL PROTECTED] I need to differentiate between different versions of NS4, particularly the ones that are used by Mac. So far, I've used the following to detect variants: if(eregi((Mozilla/4.[0-8][0-9]),$_SERVER['HTTP_USER_AGENT'])) However, I'm aware that it will not distinguish between PC and Mac-based NS4. My question is: what versions of NS (if any) do Mac's use? I've used the following to detect IE3.0 users: if(eregi((mozilla/3.0),$_SERVER['HTTP_USER_AGENT'])) Is this correct? Any insights or advice most welcome. Here's what I use to detect Mac Netscape 4.x: if((eregi(Mozilla, getenv(HTTP_USER_AGENT))) (!eregi(MSIE, getenv(HTTP_USER_AGENT))) (!eregi(Gecko, getenv(HTTP_USER_AGENT))) (eregi(Mac, getenv(HTTP_USER_AGENT Do you really need to differentiate between 4.x versions? It looks like you're matching any 4.x version. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NS4.x / IE3.0 Browser Detection
On Tuesday 20 August 2002 10:57 am, Lowell Allen wrote: From: Andre Dubuc [EMAIL PROTECTED] I need to differentiate between different versions of NS4, particularly the ones that are used by Mac. So far, I've used the following to detect variants: if(eregi((Mozilla/4.[0-8][0-9]),$_SERVER['HTTP_USER_AGENT'])) However, I'm aware that it will not distinguish between PC and Mac-based NS4. My question is: what versions of NS (if any) do Mac's use? I've used the following to detect IE3.0 users: if(eregi((mozilla/3.0),$_SERVER['HTTP_USER_AGENT'])) Is this correct? Any insights or advice most welcome. Here's what I use to detect Mac Netscape 4.x: if((eregi(Mozilla, getenv(HTTP_USER_AGENT))) (!eregi(MSIE, getenv(HTTP_USER_AGENT))) (!eregi(Gecko, getenv(HTTP_USER_AGENT))) (eregi(Mac, getenv(HTTP_USER_AGENT Do you really need to differentiate between 4.x versions? It looks like you're matching any 4.x version. Thanks Lowell, That's the problem -- I don't know whether to exclude Mac NS4 as well. I'm using a lot of CSS1, and NS4's output is horrible. Rather than re-write the whole site, or try to patch things up, I'm re-directing them to WaSP. So, the question is: does Mac NS4 behave like the PC version? If so, I'll just use what I have, and re-direct. Any ideas on the Mac? Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NS4.x / IE3.0 Browser Detection
From: Andre Dubuc [EMAIL PROTECTED] That's the problem -- I don't know whether to exclude Mac NS4 as well. I'm using a lot of CSS1, and NS4's output is horrible. Rather than re-write the whole site, or try to patch things up, I'm re-directing them to WaSP. So, the question is: does Mac NS4 behave like the PC version? If so, I'll just use what I have, and re-direct. Any ideas on the Mac? If you're redirecting either platform NS4 without support, then I'd say you might as well redirect all platforms for NS4, but you can check out the differences here: http://www.webreview.com/style/css1/charts/mastergrid.shtml -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php