Hi, The only problem I have with the wurfl.sourceforge.net system is that the server I pay for has a memory limit ("Allowed memory size of 68157440 bytes exhausted") and I can't unpack the XML file to the cache.
But an online service would be great for mobile sites. There could be several ways to do this, but I would imagine that a 200ms delay in the response would encourage the response to be stuck in a $SESSION or cookie. Low-level PHP could just be $x=file_get_contents("http://xxx.com/detect?" . $_SERVER['HTTP_USER_AGENT']); 2009/7/14 Dirk-Willem van Gulik <di...@webweaving.org> > Brian Butterworth wrote: > > 2009/7/14 Dirk-Willem van Gulik <di...@webweaving.org> > >> Try a search for UAProf and Wurfl. The latter is prolly simplest. It is a >> centrally maintained file. Fetch the XML file at >> https://sourceforge.net/projects/wurfl/files/ regularly - and preparse - >> or use the sample code. >> >> >> (Who is now wondering if we should make this an even easier/'free-er' >> service on PAL & Forge). > > > That will be me. > > Feel free to have a chat with me (or Lars, or Graham) for inspiration as > to how we could do something at a very low PHP or Apache layer (e.g. with a > bit of berkelydb, annotation moduling or memcache) - as to make the cost > incredibly low (i.e. so you can do it on any request - and have little need > to copy it in your session profile). > > Thanks, > > Dw > -- Brian Butterworth follow me on twitter: http://twitter.com/briantist web: http://www.ukfree.tv - independent digital television and switchover advice, since 2002