Reliably Detect Mobile Browsers

/, Snippets/Reliably Detect Mobile Browsers

Reliably Detect Mobile Browsers

Script link and more information

Note: If you get the following error:

Fatal error: Call to a member function isMobile() on a non-object.

Your $detect variable is out of scope. Add:

global $detect;

before your code in both files

include(“includes/Mobile_Detect.php”); global $detect; $detect = new Mobile_Detect;

By | 2017-02-12T17:52:45+00:00 February 12th, 2017|PHP, Snippets|0 Comments

Leave A Comment