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
see below link, this will perfectly suitable for your need
below is one more script :