Posted by mobile
Monday, March 26th, 2007Posted by mobile phone:
This is a test post from a real handset.
File info:
Type: image jpg
Size: 200.75 kb
Posted by mobile
Posted by mobile phone:
This is a test post from a real handset.
File info:
Type: image jpg
Size: 200.75 kb
Posted by mobile
The WordPress Mobile Plugin has grown up and has a new home!
Introducing wordpressmobile.mobi
THIS PAGE HAS SERVED US WELL BUT THE PLUGIN IS NOW ONLY AVAILABLE FROM THE NEW SITE
Make your WordPress site accessible on a mobile phone with this plugin. Now your posts, pages, archives and comments can be viewed on a mobile device. Standards are supported, posts and comments can be submitted by phone and your WordPress mobile site is easily moneitized by AdMob.
Updated: 4th October 2007
The most efficient way to detect mobile phones with PHP, this simply queries the accept headers, the user agent and checks for any tell tale signs that the browser we’re sniffing is a mobile device.
This is already working on an estimated 10,000 sites, thank you everyone for the support and contributions through the comments, please note this is now released under a shared source license, a commercial license is available.
Now presented as a function with usage examples.
Download full script here[php]function detect_mobile_device(){
// check if the user agent value claims to be windows but not windows mobile
if(stristr($_SERVER[’HTTP_USER_AGENT’],’windows’)&&!stristr($_SERVER[’HTTP_USER_AGENT’],’windows ce’)){
return false;
}
// check if the user agent gives away any tell tale signs it’s a mobile browser
if(eregi(’up.browser|up.link|windows ce|iemobile|mini|mmp|symbian|midp|wap|phone|pocket|mobile|pda|psp’,$_SERVER[’HTTP_USER_AGENT’])){
return true;
}
// check the http accept header to see if wap.wml or wap.xhtml support is claimed
if(stristr($_SERVER[’HTTP_ACCEPT’],’text/vnd.wap.wml’)||stristr($_SERVER[’HTTP_ACCEPT’],’application/vnd.wap.xhtml+xml’)){
return true;
}
// check if there are any tell tales signs it’s a mobile device from the _server headers
if(isset($_SERVER[’HTTP_X_WAP_PROFILE’])||isset($_SERVER[’HTTP_PROFILE’])||isset($_SERVER[’X-OperaMini-Features’])||isset($_SERVER[’UA-pixels’])){
return true;
}
// build an array with the first four characters from the most common mobile user agents
$a = array(’acs-’,'alav’,'alca’,'amoi’,'audi’,'aste’,'avan’,'benq’,'bird’,'blac’,'blaz’,'brew’,'cell’,'cldc’,'cmd-’,'dang’,'doco’,'eric’,'hipt’,'inno’,'ipaq’,'java’,'jigs’,'kddi’,'keji’,'leno’,'lg-c’,'lg-d’,'lg-g’,'lge-’,'maui’,'maxo’,'midp’,'mits’,'mmef’,'mobi’,'mot-’,'moto’,'mwbp’,'nec-’,'newt’,'noki’,'opwv’,'palm’,'pana’,'pant’,'pdxg’,'phil’,'play’,'pluc’,'port’,'prox’,'qtek’,'qwap’,’sage’,’sams’,’sany’,’sch-’,’sec-’,’send’,’seri’,’sgh-’,’shar’,’sie-’,’siem’,’smal’,’smar’,’sony’,’sph-’,’symb’,'t-mo’,'teli’,'tim-’,'tosh’,'tsm-’,'upg1′,’upsi’,'vk-v’,'voda’,'w3c ‘,’wap-’,'wapa’,'wapi’,'wapp’,'wapr’,'webc’,'winw’,'winw’,'xda’,'xda-’);
// check if the first four characters of the current user agent are set as a key in the array
if(isset($a[substr($_SERVER[’HTTP_USER_AGENT’],0,4)])){
return true;
}
}
// example 1 - detect and redirect mobile browsers
if(detect_mobile_device()){
header(’Location: http://andymoore.mobi/’);
exit;
}
// example 2 - detect and redirect desktop browsers
if(!detect_mobile_device()){
header(’Location: http://andymoore.info/’);
exit;
}[/php]Download full script here
Commercial License Details
Single site license: £10 one off fee - includes lifetime updates
Server-Wide / Multi-Site license - £50 one off fee - includes lifetime updates.
Order here - pay by PayPal

According to Ericsson IPX ‘Pay For It’ is now live on T-Mobile in the UK.
Quote: The Ericsson IPX WAP billing solution is the first mobile payment system to host a live payment service complying with the Payforit scheme on the T-Mobile network in the UK.
Update: MX Telecom are inviting applications as are Tanla Mobile.