How to detect mobile device and get user agent info send and save that information to database on server, only once?
问题 Is there any script to check user agent then send and save that information to database on server? I'm making mobile website with 2 versions like m.facebook.com and touch.facebook.com and I want to redirect to different mobiles. and I use WURFL device detection. So for example m.html5version.com should be delivered to all HTML5 supported devices and m.mobileversion.com should deliver to all other mobiles. So i need a way to detect device and browser 1st time using any server-side or client