-1

I tried to get device id from mobile through PHP code. Is there any possibility to get mobile device id from PHP code.

user1124166
  • 1
  • 1
  • 1
  • 5

2 Answers2

0

There is a really simple solution to use Mobile-detect here: https://github.com/serbanghita/Mobile-Detect/

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. http://mobiledetect.net

NID
  • 3,238
  • 1
  • 17
  • 28
0

You will NOT get real device ID in $_SERVER. User agent does not contain that info as well. You cannot access that data just using php or anything else, that is NOT executed on phones.