Mobile phone browser redirect script

  HighTower 18:15 PM 30 Jan 09
Locked

Anyone know of one that works well? A simple detect and redirect to a specified page if the user is on a mobile phone browser is all I require.

Thanks.

  Kemistri 19:00 PM 30 Jan 09

If you need to redirect the user (presumably because your layout cannot simply be shrunk down to fit a tiny screen) then you can write (or download an off-the-shelf) PHP user agent detection script. click here for one example that is supposed to be pretty up to scratch. If you don't need the redirect, use media type statements in your style sheet links. Please keep in mind the fact that user agent reporting is flexible and therefore its detection can be patchy. For that reason, I avoid it.

  HighTower 22:34 PM 02 Feb 09

I'll give it a go, thanks very much for the link.

Advertisement

This thread is now locked and can not be replied to.

How to watch iPhone 6s, iPhone 6s Plus launch live: What to expect from Apple's 9 September 2015…

1995-2015: How technology has changed the world in 20 years

This installation lets you control a laser and sound show using your mind

Apple's special event invitations decoded: A look back at 13 of Apple's most cryptic invites