Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7492745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:32:33+00:00 2026-05-29T16:32:33+00:00

When using the get_browser function in PHP on: Linux server – works perfectly. WAMP

  • 0

When using the get_browser function in PHP on:

  • Linux server – works perfectly.
  • WAMP server – returns “Default Browser”

I have just downloaded the latest browscap.in file.

My user_agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

WAMP:

Array
(
    [browser_name_regex] => §^.*$§
    [browser_name_pattern] => *
    [browser] => Default Browser
    [version] => 0
    [majorver] => 0
    [minorver] => 0
    [platform] => unknown
    [alpha] => 
    [beta] => 
    [win16] => 
    [win32] => 
    [win64] => 
    [frames] => 
    [iframes] => 
    [tables] => 
    [cookies] => 
    [backgroundsounds] => 
    [javascript] => 
    [vbscript] => 
    [javaapplets] => 
    [activexcontrols] => 
    [isbanned] => 
    [ismobiledevice] => 
    [issyndicationreader] => 
    [crawler] => 
    [cssversion] => 0
    [aolversion] => 0
)

Server:

Array
(
    [browser_name_regex] => �^mozilla/5\.0 \(.*windows nt 6\.1.*wow64.*rv:.*\) gecko/.* firefox/9\..*$�
    [browser_name_pattern] => Mozilla/5.0 (*Windows NT 6.1*WOW64*rv:*) Gecko/* Firefox/9.*
    [parent] => Firefox 9.0
    [platform] => Win7
    [win32] => 
    [win64] => 1
    [browser] => Firefox
    [version] => 9.0
    [majorver] => 9
    [frames] => 1
    [iframes] => 1
    [tables] => 1
    [cookies] => 1
    [javascript] => 1
    [javaapplets] => 1
    [cssversion] => 3
    [minorver] => 0
    [alpha] => 
    [beta] => 
    [win16] => 
    [backgroundsounds] => 
    [vbscript] => 
    [activexcontrols] => 
    [isbanned] => 
    [ismobiledevice] => 
    [issyndicationreader] => 
    [crawler] => 
    [aolversion] => 0
)

QUESTION: How do I fix this issue in WAMP so that it behaviours like the linux server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:32:34+00:00Added an answer on May 29, 2026 at 4:32 pm

    I suggest to use this “Standalone replacement for php’s native get_browser() function”
    https://github.com/garetjax/phpbrowscap

    This library is suggested to be used in the Browsercap page

    Here is a list of the features:

    • Fast
    • Standalone
    • Even faster parsing many user agents
    • Fully get_browser() compatible
    • Often faster and more accurate than get_browser()
    • Fully PHP configuration independent
    • User agent auto-detection
    • Returns object or array
    • Parsed .ini file cached directly into PHP arrays
    • Accepts any .ini file (even ASP and lite versions)
    • Auto updated browscap.ini file and cache from remote server with version checking
    • Configurable remote update server
    • Fully configurable (since 0.2)
    • PHP4 and PHP5 compatible (PHP4 version deprecated)
    • Released under the MIT License
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to differentiate IE7 versus IE6 using PHP's get_browser() function?
I'm using the get_browser() function in an attempt to warn people that their browser
I have a function that returns me a date string using Zend_Date . $date
I am writing a tail function in PHP, and using jQuery to refresh a
I am trying to use PHP's built-in function get_browser() . I followed the instructions
I have a script which at one point returns an image thumbnail using jquery
Going slightly crazy here. I'm making an Ajax call using jQuery.post as follows: $.post('php/print.php',{data:dS},function(res){...
I have a question about the images displaying using a function getImage_w($image,$dst_w), which takes
I have a jQuery function, which is using AJAX to send the necessary information
Is it possible to get a browser's home page using Javascript? I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.