Page 1 of 1

Auto switch resolution for mobile internet

Posted: Mon Jun 25, 2007 8:09 pm
by rozvinbm_jp
Any idea on this or hints guys?

developing websites that able to view also in mobile internet.
Is there any restrictions or constraints (don't know what the term) if you develop a website for mobile access? or it is the same way?

I just thinking first of all the difference of the resolution or screen. And also I experienced the difference of the URL when accessing the yahoo.com via mobile internet. That's why It may have a difference.

I am asking you guys, from experienced php developers with mobile website development and good idea for all you guys.

Thanks in advance.

Posted: Mon Jun 25, 2007 9:12 pm
by feyd
I don't understand what you're asking.

Posted: Mon Jun 25, 2007 9:50 pm
by rozvinbm_jp
Sorry for not clear explanation.

I'm planning to create a website that can able to access via PC's browsers and Mobile's browsers. PC and Mobile has different resolution and maybe every mobile has different resolutions too.

Iam begging a help from you guys on how to development a website for mobile browsers.

Posted: Mon Jun 25, 2007 10:33 pm
by feyd
General tips
  • Don't design pages to be pixel perfect.
  • use and abuse the media types provided by CSS.

Posted: Tue Jun 26, 2007 3:36 am
by rustem
Your question is too general. Be more specific please.

I will say this, however. I am guessiong you want to create different versions of your website for mobiles and PCS and need to be able to detect the resolution of the client that accesses it. PHP cannot do it because it's a preporcessor (it runs on server). You need a run-time application (it runs on client's computer) like JavaScript that can detect the resolution and operating system of the client and switch to apropriate version of your site.

Posted: Tue Jun 26, 2007 4:42 am
by Gente
If you want to check if site is browsed from mobile device you can use $_SERVER['HTTP_USER_AGENT'] variable. Every mobile device has it's own specific value.