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

  • SEARCH
  • Home
  • 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 8037135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:50:09+00:00 2026-06-05T02:50:09+00:00

i using browser.php for detect OS name that users use it. but my question

  • 0

i using browser.php for detect OS name that users use it.
but my question is that how we can get OS version of users use. this script did not provide any method or property for that .
for example i want to show windows version that users use it include seven,XP and so on.

what is solution? please Help me if can

  • 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-06-05T02:50:11+00:00Added an answer on June 5, 2026 at 2:50 am

    Use the Browsercap class instead, since it appears (from the comments above) that the tool you’re currently using doesn’t support this feature. The Browsercap class is an off-shoot of PHP’s native get_browser() method, though the class doesn’t require the types of ini-configurations that the native function does. The class is also a fully standalone solution.

    Setup is easy:

    // Loads the class
    require 'path/to/Browscap.php';
    
    // The Browscap class is in the phpbrowscap namespace, so import it
    use phpbrowscap\Browscap;
    
    // Create a new Browscap object (loads or creates the cache)
    $bc = new Browscap('path/to/the/cache/dir');
    
    // Get information about the current browser's user agent
    $current_browser = $bc->getBrowser();
    
    // Output the result
    print_r($current_browser);
    

    The output will be your resulting object, full of relevant data (including the Platform/OS):

    stdClass Object
    (
        /* ... */
        [Parent] => Safari 3.1
        [Platform] => MacOSX
        [Browser] => Safari
        [Version] => 3.1
        /* ... */
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a PHP script that I'm using to detect a users browser before
I have PHP web script that have to be executed periodically, using web browser.
Using Php is it possible to detect exact OS even if the browser agent
How to determine the browser of the user using PHP? So that if the
When i try to load a page that resides in /var/www/vhosts/mypage/httpdocs/index.php using a browser
Possible Duplicate: Any php code to detect the browser with version and operating system?
I am currently testing this function in all browser using php. <style> #preview_desc{ text-wrap:
Possible Duplicate: How can I detect the browser with PHP or JavaScript? I want
I would like to build web browser game using php. I need graphics so
I need to cause a user's browser to post data using PHP to another

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.