D
D
Deman12018-03-09 14:07:34
PHP
Deman1, 2018-03-09 14:07:34

How to identify the device?

Hello, I want to make 2 mobile designs on the site and the main one, how can I implement it?
How can you determine what the user is from?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-03-09
@webinar

100% - no way, but with a certain accuracy for the headers in the request. There are a lot of ready-made implementations, for different servers, for example:
https://gist.github.com/perusio/1326701
Well, then either a redirect to a subdomain like m.domain.com or some other sign of a variable type and in php already resolve connection of one or another design theme, there are already a lot of options, it depends on the architecture of your application.

A
Alexander, 2018-03-09
@zkelo

Mobile Detect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question