![]() |
config/user_agents.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: config/user_agents.php (/showthread.php?tid=71477) |
config/user_agents.php - leequalls - 08-17-2018 Hi, Is it possible for the for platforms to detect what version of Mac OS X is being used? RE: config/user_agents.php - donpwinston - 08-17-2018 $_SERVER['HTTP_USER_AGENT'] Has the OS version in it. RE: config/user_agents.php - leequalls - 08-17-2018 (08-17-2018, 09:32 PM)donpwinston Wrote: $_SERVER['HTTP_USER_AGENT'] No, I want to be able to tell what version of MAC OS a user is on. Like Windows tells you if the user is on Windows 10, Windows 7, Windows 8 and so on. I want to do the same for Mac OS X are they on MacOS 10.13, MacOS 10.14, MacOS 10.15 and so on. The user agent script does not break it down like that. RE: config/user_agents.php - donpwinston - 08-17-2018 I get Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 It has the OS version in it. What's printed depends on the browser. |