My class project is that I need to create a website. When this website is accessed it will detect if the user is coming from a PC or a mobile device. Depending on the source of the request the site will either send the website for PCs or the mobile website.

How do I get the server to acknowledge the devices? Would I also go about the mobile website as I would when creating an actual website?

I have to use notepad for this project. If there is any other information that would help or I should know about please let me know.

Any help is much appreciated. Thank you!

link|improve this question
This will most likely be closed because you're asking for homework. But you should probably start by googling how websites detect the client web browser, then how to redirect based on client. You don't mention if you're using javascript, or what web server you're using, or any of the other kinda' important details. – Bart Silverstrim Jun 12 '11 at 17:57
feedback

closed as off topic by Helvick, Iain, mfinni, Graeme Donaldson, sysadmin1138 Jun 12 '11 at 19:08

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

Sounds like homework, so i won't go into the details.

Btw you don't give us enough information, Notepad okay, but that's just the editor which isn't important for us. Do you have to use Javascript, PHP, Apache, etc. ?

Check out this link: http://www.mlynn.org/2010/06/mobile-device-detection-and-redirection-with-php/

For more google for "mobile device detection" + the stuff you should use

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.