4 Steps – Download, Unzip, Include, Go Mobile with PHP
Add mobile device detection to PHP the easy way with 51Degrees.mobi. No cloud services, no external plug-ins, all Mozilla Public Licence source code. It’s a great alternative to WURFL or DeviceAtlas.
Step 1 – Download the Zip file from SourceForge.
Step 2 – Unzip the file into a directory of your choice within your project.
Step 3 – Then add the following code to your PHP page file:
include_once(‘path/to/51Degrees.php’);
include_once(‘path/to/51Degrees.usage.php’);
(It is recommended for performance purposes that these lines are included after a session_start();)
Step 4 – Get the details about the device that is accessing your site with code like this:
if ($_51d[‘IsMobile’] == TRUE)
{
//Start coding for a mobile device here.
}
Read the full user guide on our web site.
You’re probably paying too much for cell phone service. Wirefly compares hundreds of plans to help you save. Enter what you need (minutes, data, texts) into Wirefly’s innovative plan comparison tools and see your savings instantly.
Website | http://51degrees.mobi/Support/Documentation/PHP.aspx |
Tags | Dynamic ContentMobileWAP |
License | Mozilla Public License 2.0 (MPL 2.0) |
Features |
|