Auto switch resolution for mobile internet

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
rozvinbm_jp
Forum Commoner
Posts: 43
Joined: Thu Jun 14, 2007 8:36 pm
Location: Fuji-shi, Shizuoka-ken, Japan

Auto switch resolution for mobile internet

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't understand what you're asking.
rozvinbm_jp
Forum Commoner
Posts: 43
Joined: Thu Jun 14, 2007 8:36 pm
Location: Fuji-shi, Shizuoka-ken, Japan

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

General tips
  • Don't design pages to be pixel perfect.
  • use and abuse the media types provided by CSS.
rustem
Forum Newbie
Posts: 9
Joined: Tue Jun 26, 2007 2:41 am

Post 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.
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post 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.
Post Reply