Redirecting based on mobile using php [closed]?

Up vote -4 down vote favorite share g+ share fb share tw.

Php mobile link|improve this question edited Dec 30 '11 at 14:51Dan4,852820 asked Dec 30 '11 at 14:49harikrishnan000711.

Similar question, look at this answer for PHP link : stackoverflow.com/a/1005162/1093649 (better be using apache rules if you can) – Justin T. Dec 30 '11 at 14:52 stackoverflow.com/questions/8660555/mobi... – Sergio Tulentsev Dec 30 '11 at 14:53 Frndz thanks a lot. I had got the answer... – harikrishnan0007 Dec 30 '11 at 14:59.

There is a mobile detection plugin for PHP that would allow you to specify how the user views the page. If you didn't want to do pure CSS changes, you could forward them on to a subdomain (m.mysite.com) to a virtual path (mysite.com/mobile) using this plugin.

It seems that you need basic knowledge on implementation such work. Ok you have to do two things. First you have to detect whether the request came from a mobile device or from a computer.

For visual aspects you can redirect user to your mobile page or you can display same page as a mobile friendly page using relevant HTML and CSS rules. To detect whether the request came from a mobile device. You can use some plugin or a class already developed.

It will make your work easier. I have used following class for one of my project and it works well. chrisschuld.com/projects/browser-php-det... Cheers!

Here is a link to another question like yours. This should help: PHP mobile browser detection?

If your going to down vote me can you at least give me the courtesy of commenting – Chillie Dec 30 '11 at 15:01 I didn't down vote, but I suspect your answer should have been a comment rather than an answer as we try to discourage duplicate questions. – Sohnee Dec 30 '11 at 15:11 Then why didn't the other answers get down voted? I'm one of three answers people!

Be fair! – Chillie Dec 30 '11 at 15:13 @ChillTech None of the other answers was simply "Check this other question on stackoverflow". I downvoted.

– Mike B Dec 30 '11 at 16:20 1 @ChillTech You should know by now that questions with duplicate answers are closed (as this one was, and was pointed out early by Justin T. ). Don't take it personal.

– Mike B Dec 30 '11 at 16:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions