0

I am needing to identify the browser and OS version of users to a website. Particularly the Mac OS Catalina. If anyone visiting the site using Safari and Catalina need to be redirected to a different page than all other visitors.

Can anyone assist me with PHP for such a need?

Dharman
  • 30,962
  • 25
  • 85
  • 135
Michael
  • 11

1 Answers1

1

You could get infomation of user browser with $_SERVER['HTTP_USER_AGENT']. Let view https://www.php.net/manual/en/function.get-browser.php

Nis Ajax
  • 13
  • 5
  • It would be more convenient for the user If you can write few lines helping the person understand and share the reference link as well. – shishir Nov 05 '19 at 04:09
  • Thanks but I am unsure how to use it to gather the browser and operating system version so that I can then redirect the user if they are on Mac Catalina and Safari. – Michael Nov 05 '19 at 16:25