Lieberland

Stuff I find interesting

  • Home
  • About

17

Oct

Detecting an iPod Touch or iPhone coming to your website

Posted by admin  Published in iPod, iPod / iPhone Web Development

I have been doing a lot of iPhone website development lately.  There are lots of tips and tricks I have found to making websites look proper on these devices.  I’ll separate some of these tricks into different articles.

The HTTP_USER_AGENT for an iPod Touch (my iPod Touch anyway) is:

Mozilla/5.0 (iPod; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) --->
AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16

ipad is:

Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) --->
AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10

so in PHP if you just search for “iPhone” in the HTTP_USER_AGENT you can see if it is indeed a small mobile device coming to your website:

if(stripos($_SERVER['HTTP_USER_AGENT'], "iphone") > 0) {
  echo "This is an iphone!";
}
else {
  echo "NOT an iphone!";
}
 


no comment

2

Oct

List of supported video formats on iPod and iPhone and Video Format Conversion

Posted by admin  Published in iPod, Web Programming

I am working on a project that involves converting video to play on any iPod or other mobile device.  This is a handy reference that tells you what video formats in what size and framerate are supported on which devices:http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-ipod-video-formats-and-display-resolutions/WinFF is a free video converter program based on FFMpeg for Linux:http://winff.org/html_new/It will convert just about any video format to any other video format.  And its free!

no comment

2

Oct

Universal docking adapters for iPod / iPhone

Posted by admin  Published in iPod

I needed to get an adapter to fit into the Apple Hi-Fi (discontinued) for my iPod Touch. This lists all of the universal adapters for iPod and iPhone:http://support.apple.com/kb/HT1380Hopefully I can get the adapter I need at any apple store.

no comment

Search

About

This is sitename and some description about your self here...

Categories

  • Android Programming (2)
  • Arduino (1)
  • CA Trip (16)
  • Cooking (1)
  • Coupons (3)
  • Eclipse IDE (1)
  • Fayson Lakes (2)
  • General (1)
  • iPod (3)
  • iPod / iPhone Web Development (1)
  • Javascript and jQuery (1)
  • Laptop Repair (1)
  • Linux (1)
  • Motorcycles (2)
  • music (1)
  • Ping Pong Scoreboard (2)
  • SEO (1)
  • Symfony (2)
  • Tech (7)
  • Travel (20)
  • Uncategorized (28)
  • Web Programming (14)
  • wordpress (2)

Archives

  • March 2012 (1)
  • January 2012 (1)
  • December 2011 (2)
  • November 2011 (1)
  • October 2011 (1)
  • September 2011 (2)
  • August 2011 (1)
  • June 2011 (1)
  • March 2011 (16)
  • February 2011 (3)
  • January 2011 (3)
  • December 2010 (3)
  • October 2010 (8)
  • September 2010 (7)
  • January 2010 (1)
  • November 2009 (1)
  • April 2009 (1)
  • March 2009 (5)
  • January 2009 (3)
  • December 2008 (2)
  • November 2008 (8)
  • October 2008 (1)
  • June 2008 (1)
  • March 2008 (1)
  • September 2007 (1)
  • July 2007 (4)

Blogroll

Pages

  • About

Meta

  • Log in
  • Main Entries Rss
  • Comments Rss
May 2012
M T W T F S S
« Mar    
 123456
78910111213
14151617181920
21222324252627
28293031  
2010 Liebwerks, LLC. WordPress.