php mobile redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

php mobile redirect

Post by ebgames56 »

What is the code for a mobile device such as Iphone, Ipad and ipod touch to visit a site and have it redirected
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php mobile redirect

Post by Celauran »

Check their user agent against a list of know mobile user agents and redirect as appropriate.
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: php mobile redirect

Post by ebgames56 »

where do i get the user agent list
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php mobile redirect

Post by Celauran »

ebgames56 wrote:where do i get the user agent list
Google.

The Apache Mobile Filter might also be of interest.
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: php mobile redirect

Post by ebgames56 »

I have used google and tells me nothing
ebgames56
Forum Contributor
Posts: 103
Joined: Thu Oct 06, 2011 10:43 am

Re: php mobile redirect

Post by ebgames56 »

i get some port 80 error
Post Reply