Simplest Way To Detect A Mobile Device In PHP

1 · Subin Siby · Jan. 14, 2014, 6:12 a.m.
Mobile users are increasing. Most of the site visitors of a website is using mobiles to browse. So you need to redirect users who uses mobile to a mobile page of your site. In Javascript it is easy, because you can check the width and height of the window. But on server side, it can become difficult. You will find is_mobile() function in this post which detects if the client is in mobile or not....