Testing the new wp iphone app

Posted by & filed under iPhone.

Testing pic uploads ect on the iPhone app
pa href=http://natesbox.com/blog/wp-content/uploads/2010/01/p_1600_1200_441E21F6-F668-486C-8366-BF7B4A72BB39.jpegimg src=http://natesbox.com/blog/wp-content/uploads/2010/01/p_1600_1200_441E21F6-F668-486C-8366-BF7B4A72BB39.jpeg alt= width=225 height=300 class=alignnone size-full wp-image-364 //a/p

Detect iPhone Clients

Posted by & filed under iPhone, PHP.

In PHP:

  1. <?php if (strpos($_SERVER[‘HTTP_USER_AGENT’], ‘iPhone’) !== FALSE)
  2. { header(‘Location: http://labs.bluemetalcorp.com/iphone/’); }
  3. ?>

.htaccess:

  1. RewriteEngine on
  2. RewriteCond ${HTTP_USER_AGENT} iPhone
  3. RewriteRule .* http://labs.bluemetalcorp.com/iphone/