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 6955835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:47:22+00:00 2026-05-27T14:47:22+00:00

i have a high traffic website (1+ Millions visitors per day) and i need

  • 0

i have a high traffic website (1+ Millions visitors per day) and i need to detect their user agent. i have a list over 1000 mobile devices.

i run memcache to output dynamic content based on what page they access and params they put eg:

/document/page/1?textsize=large

and i don’t have static pages nor i cant use sub-domains.

i found different scripts that check user agent:

http://www.mobile-phone-specs.com/user-agent-browser/0/

http://detectmobilebrowsers.mobi/

http://detectmobilebrowsers.com/

my question is, performing these check every time a page load will make my site slow with the traffic i get

edit: i need to know in my php code if it’s a mobile or not browser.

how can i make this check to run faster?

  • 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-27T14:47:23+00:00Added an answer on May 27, 2026 at 2:47 pm

    Use all the answer above.

    Use the CSS to display your page correctly. since its only display let the browser loads deal with it. just be careful of how big the css/js/images/html pages are, for slow devices it might take forever to load a page that does not load images or big js files (like old flip phone where you can see s**t on it)

    on your php use a logic script to find out the most browser you get then save it in session so you dont have to check it everytime.

    something like:

    if(!$_SESSION['var']) {
      if(stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') !== FALSE) {
        $_SESSION['var'] = 'iphone';
      }
      // etc...
      // your else case can be desktop or default.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a high traffic website and I need make sure my site is
I have a high-traffic news website that I need to add a search feature
I have a website with high traffic. Maybe I will increase minimum connections pool,
So I have a website that could eventually get some pretty high traffic. My
I have a high traffic website with a lot of static content. It is
I have a (high-traffic) chunk of my website that is entirely static. All the
I have a high traffic website and I use hibernate. I also use ehcache
I have a table that potentially will have high number of inserts per second,
I am currently working on a website that will have a high volume of
I’m working on a project and have developed the high level user requirements for

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.