The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

PHP Browser Detection
php_browser_detection_browscap.ini file outdated... (3 posts)

  1. amereservant
    Posted 5 years ago #

    The browscap.ini file this plugin relies on is outdated as I write this (version 2.1) as it won't detect the latest version of Chrome in Linux Ubuntu 11.04.
    After downloading the most recent version from http://browsers.garykeith.com/downloads.asp, it detected it just fine.

    Since this plugin completely relies on the browscap.ini data to detect the browser, I recommend adding a WP_Cron task that compares the version currently being used with the latest version via their Version API, http://browsers.garykeith.com/faq.asp#FAQ_8, and then updates the local version if a newer version remotely exists.
    The update can either be automatic or just prompt the administrator.

    Here's how I've implemented the version check: http://pastebin.com/HudNEZTg.
    It simply checks for a newer version, but I haven't added any sort of update function.

    I hope that helps...


  2. Mindshare Labs, Inc.
    Plugin Author

    Posted 4 years ago #

    Hi amereservant, any interest in forking this project with me and creating a version that's updated regularly? I've also indicated that I'm happy to help maintain it if the author wants help... http://wordpress.org/support/topic/plugin-php-browser-detection-update-php_browscapini

  3. MartyThornley
    Plugin Author

    Posted 4 years ago #

    I just added mindshare as a committer. Would you like to be added too, amereservant? I had always wanted to add the auto-check via their API. Would be very cool to have that added in!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic