I wrote up a quick PHP script to check most of that stuff.  It returns an array of data so that in your page you can call the function and then test things like:

$request['agent']
or
$request['os']
or
$request['isBOT']

and a bunch of other booleans I added in.  It will even (try to) tell you if the request is servicing more than one subscriber.  For example a mefeedia request may be serving many subscribers ... this function will tell you how many (when such information is provided).

Check out:
http://www.davidmeade.com/resources/getSubscriberInfo.php

I'll send you the php file, however it would be up to you to then test the values this function returns and decide what to do based off of it.

Example:
$request = getSubscriberInfo();
if ($request['agent'] == 'iTunes') {
 // do something here
}
else {
 // do something else.
}

It doesnt do country of origin, but it could ...  I dont know how to do it off the top of my head, but it shouldnt be TOO difficult.  If its the killer feature you're dying for let me know and I'll try to find some time to figure it out.

- Dave

On 5/10/06, wazman_au <[EMAIL PROTECTED]> wrote:
I would be very very interested in that ... thanks, you can e-mail me
offlist if you like. [EMAIL PROTECTED]

Waz
www.crashtestkitchen.com

--- In [email protected], "David Meade" <[EMAIL PROTECTED]>
wrote:
>
> I wrote a php script once to parse out the user agent and OS of people
> requesting my feed.  I used it to estimate subscribers ... I moved
over to
> feedburner and abandonded my script ... but it certainly is possible
... I
> know of at least one script that did something similar :-P
>
> I dont have alot of time to spend coding, but I could probably whip
up with
> a php function to return the user agent, IP, and OS (when/if such
> information is available) ... would that be enough for you to accomplish
> what you want to do?
>
> You could then use/test those values to decide what version of the
feed to
> give them.
>
> - Dave
>
> On 5/8/06, Jen Simmons <[EMAIL PROTECTED]> wrote:
> >
> > yeah, well when you figure it out, offer the code to us as open
source,
> > with an in-depth tutorial !!!
> > :-)
> > you'll get lots of brownie points and well wishes....
> > as far as I know many of us have been wishing for something like this,
> > but no one's yet done it...
> > (ok, jump in to correct me if / where I'm wrong)
> >
> > j
> >
> > jenSimmons
> > http://www.jensimmons.com
> > On May 8, 2006, at 4:34 AM, wazman_au wrote:
> >
> > >  Hmm, I suppose I was looking for a bit more than a "Yes, it can be
> > >  done/no, it can't be done" answer; rather, someone who's done
it, or
> > >  done something similar, and might have a ready-made solution!
> > >
> > >  I have no idea how WordPress logs the info about user agent, for
> > > example.
> > >
> > >  Oh well, looks like i'm out on the "bleating edge" and it will be
> > >  self-help and a crash course in PHP scripting for me.
> > >
> > >  Waz
> > >  www.crashtestkitchen.com
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> http://www.DavidMeade.com
> feed:   http://www.DavidMeade.com/feed
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/lBLqlB/TM
--------------------------------------------------------------------~->


Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/videoblogging/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






--
http://www.DavidMeade.com
feed:  http://www.DavidMeade.com/feed

SPONSORED LINKS
Fireant Individual Use
Explains


YAHOO! GROUPS LINKS




Reply via email to