Hello, I’m writing about how to use php browser detection to have css php files that are completely dynamic getting rid of the need to have almost any hacks. However, I need a VERY simple php script that’ll detect simply the browser, version number, and os of a client. I don’t want to use somebody’s script that I find from google because I’m going to be redistributing this to other people, and that’s why I’m looking for help. The problem is that the $_SEVER[‘HTTP_USER_AGENT’] detects it as an entire string rather than just the browser type and other properties I need individually. I found got_browser but that doesn’t work without the browscap.ini file already installed in php, which isn’t an option for most people.
Can anybody please please help me find a simple way to test the browser?