4

I am a beginner site developper, first post here. I am posting here because i find this subject particulary difficult to google..

So I was wondering if you surf to a website from 2 different devices, (eg. android / PC ), if a different HTML page is returned.. because sometimes you get like a "simplified" page on the smaller devices.

If so, how can i do this server side? Any handy links/tutorials i can follow? I would work with PHP and MySql.

I am asking this, because I want to develop a site using QR codes, so the biggest number of visitors will be from phones!

Tanks, Mathias

Mathias Colpaert
  • 652
  • 6
  • 23
  • Welcome to Stackoverflow. Please read [ask] and [What have you tried?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – nfechner Feb 25 '12 at 10:46
  • 1
    Responsive design - take a look at CSS media queries, and twitter bootstrap implementation. – Aurimas Ličkus Feb 25 '12 at 10:49
  • possible duplicate of [Auto detect mobile browser (via user-agent?)](http://stackoverflow.com/questions/1005153/auto-detect-mobile-browser-via-user-agent) – Gordon Feb 25 '12 at 10:58
  • You didn't search well for this issue. http://stackoverflow.com/questions/386046/how-do-i-determine-whether-its-a-mobile-device-with-php – sznowicki Feb 25 '12 at 11:06
  • As gordon says, most such apps decode $_SERVER['HTTP_USER_AGENT'] – TerryE Feb 25 '12 at 11:18

1 Answers1

1

Take a look at this PHP class. It detects mobile devices:

There are also very simple solutions and tutorials like this one:

Searching Google or StackOverflow will give you loads of examples!

Community
  • 1
  • 1
Fabian
  • 3,465
  • 4
  • 34
  • 42