Project / Support Center
Welcome, Guest. Please login or register. November 28, 2023, 08:38: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Mobile Devices  |  Topic: Found something else we like for detecting a mobile device for a show if - else 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: Found something else we like for detecting a mobile device for a show if - else  (Read 20300 times)
admin
Administrator
******
Offline Offline

Posts: 239


« on: January 22, 2017, 09:17: PM »

Download the mobile_detect.php file and place it where you want on your server.

Here's the show if scripting

 <?php include("mobile_script/Mobile_Detect.php");  // Check for any mobile device.
$detect = new Mobile_Detect(); ?>


<?php if ($detect->isMobile()) { ?>

   show if mobile

<?php } else {  ?>

   show if desktop

   <?php } ?>

* Mobile_Detect.php (80.55 KB - downloaded 1170 times.)
Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  Mobile Devices  |  Topic: Found something else we like for detecting a mobile device for a show if - else « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!