8

I'm new to PHP, I'm leraning on my own and I'm trying to use the get_browser() function, but I checked in my phpinfo() and it seems I don't have it, because it says "no value". Could you please help me setting up one, or downloading one I can use? Thanks a lot! I looked one in the php site, but it says they are developing one now.

krlozadan
  • 317
  • 2
  • 5
  • 10
  • 5
    "browscap.ini download" ask google about it (and always ask google when you have some question before you ask it here) – zerkms Nov 13 '12 at 03:46

1 Answers1

8

You can get an updated browscap.ini file here: http://browscap.org/ - choose the version you need (PHP, in this case).

Tieson T.
  • 20,774
  • 6
  • 77
  • 92
  • 1
    There's also a userland replacement for `get_browser()` hosted on GitHub for those who enjoy being able to peek under the covers: https://github.com/browscap/browscap-php – vhs Jun 12 '17 at 04:23