Re: Determine Visitors OS
The REAL ? here is, how much do I owe you for that nugget!!! LOL, Happy Friday everyone. I'm headed out to the Big XII tourney in just a few to drink beer and watch some hoops. --Ferg jonese wrote: > Ok even after ken's misguided poking (funny stuff really). i coded up > my own OS function based off an older PHP one i used to use. > > I can only test it on Win XP, Win 2k, Win 2k3 and an ancient Mac. > > If you can test on other OS's I'd really appreciate it. just email me > here or off list and I'll send you RAR or Zip of the code. > > Once it's been tested I'll drop it onto CFlib for inclusion. > > Execution is simple > #osDetect()# > > This will return a string with the name and possible version of the > OS. (which is what i wanted versus the CGI.HTTP_USER_AGENT ugliness). > > TIA for the testing, and Friday diversion :) > > Oh yea ken just to show you there is no heart feelings here's some > code you can use to show the server version you CF application is > running on (this only took me 9 minutes to write): > > > > > > > > > > > > jonese > > On 3/10/06, Mingo Hagen <[EMAIL PROTECTED]> wrote: > >> Okay, >> >> I personally usualy use some combinations of cgi.user_agent, which do >> count on the cgi.user_agent string being correct, and not faked, like u >> can do in most browsers either through a plugin or nativly. So for >> instanct > contains 'win'> means your probably on a mac, etc. >> >> It would be cool if there is some kind of api to contact a user_agent >> database (I believe there are several online, and free) which then >> return more usable variables, like IsMac or IsIE. >> >> Regards, >> Mingo. >> >> >> >> >> >> >> Munson, Jacob wrote: >> >> Now, if you're not sufficiently advanced in CF development, I'd suggest asking for help with this one! Seriously Jonese, I'm sorry to be having fun with this at your expense, but you spent way more time looking for a function to do this than it would have taken for you to write a couple of lines of code and that's even if you only spent 10 minutes looking! >>> I think you are kind of joking, and I do agree that the answer could >>> have been found if the poster poked about a bit, but I have to say that >>> your code will not return the operating system. It will return a bunch >>> of data that may or may not include the operating system. That is why >>> the original poster was hoping someone would give him some direction on >>> a function that will extract the OS from the metadata that all of the >>> various systems out there can return. Also, problems like these are why >>> a company like BrowserHawk is in business. It's not an easy question to >>> answer. >>> >>> >>> - >>> >>> This transmission may contain information that is privileged, confidential >>> and/or exempt from disclosure under applicable law. If you are not the >>> intended recipient, you are hereby notified that any disclosure, copying, >>> distribution, or use of the information contained herein (including any >>> reliance thereon) is STRICTLY PROHIBITED. If you received this transmission >>> in error, please immediately contact the sender and destroy the material in >>> its entirety, whether in electronic or hard copy format. Thank you. A1. >>> >>> >>> >>> >>> >> > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235067 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
Ok even after ken's misguided poking (funny stuff really). i coded up my own OS function based off an older PHP one i used to use. I can only test it on Win XP, Win 2k, Win 2k3 and an ancient Mac. If you can test on other OS's I'd really appreciate it. just email me here or off list and I'll send you RAR or Zip of the code. Once it's been tested I'll drop it onto CFlib for inclusion. Execution is simple #osDetect()# This will return a string with the name and possible version of the OS. (which is what i wanted versus the CGI.HTTP_USER_AGENT ugliness). TIA for the testing, and Friday diversion :) Oh yea ken just to show you there is no heart feelings here's some code you can use to show the server version you CF application is running on (this only took me 9 minutes to write): jonese On 3/10/06, Mingo Hagen <[EMAIL PROTECTED]> wrote: > Okay, > > I personally usualy use some combinations of cgi.user_agent, which do > count on the cgi.user_agent string being correct, and not faked, like u > can do in most browsers either through a plugin or nativly. So for > instanct contains 'win'> means your probably on a mac, etc. > > It would be cool if there is some kind of api to contact a user_agent > database (I believe there are several online, and free) which then > return more usable variables, like IsMac or IsIE. > > Regards, > Mingo. > > > > > > > Munson, Jacob wrote: > > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >>Now, if you're not sufficiently advanced in CF development, > >>I'd suggest > >>asking for help with this one! Seriously Jonese, I'm sorry to > >>be having > >>fun with this at your expense, but you spent way more time > >>looking for a > >>function to do this than it would have taken for you to write > >>a couple > >>of lines of code and that's even if you only spent 10 minutes looking! > >> > >> > > > >I think you are kind of joking, and I do agree that the answer could > >have been found if the poster poked about a bit, but I have to say that > >your code will not return the operating system. It will return a bunch > >of data that may or may not include the operating system. That is why > >the original poster was hoping someone would give him some direction on > >a function that will extract the OS from the metadata that all of the > >various systems out there can return. Also, problems like these are why > >a company like BrowserHawk is in business. It's not an easy question to > >answer. > > > > > >- > > > >This transmission may contain information that is privileged, confidential > >and/or exempt from disclosure under applicable law. If you are not the > >intended recipient, you are hereby notified that any disclosure, copying, > >distribution, or use of the information contained herein (including any > >reliance thereon) is STRICTLY PROHIBITED. If you received this transmission > >in error, please immediately contact the sender and destroy the material in > >its entirety, whether in electronic or hard copy format. Thank you. A1. > > > > > > > > > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235054 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
You're absolutely right; I was kidding. It is Friday after all and I think most people are at their silliest near lunchtime on Friday. I, of course, meant no offense to jonese and with all of this, I'm sure jonese will have no trouble whipping up some script to parse the browser, OS, version info... out of the user_agent string. --Ferg Munson, Jacob wrote: >> >> >> >> >> >> >> >> >> >> >> Now, if you're not sufficiently advanced in CF development, >> I'd suggest >> asking for help with this one! Seriously Jonese, I'm sorry to >> be having >> fun with this at your expense, but you spent way more time >> looking for a >> function to do this than it would have taken for you to write >> a couple >> of lines of code and that's even if you only spent 10 minutes looking! >> > > I think you are kind of joking, and I do agree that the answer could > have been found if the poster poked about a bit, but I have to say that > your code will not return the operating system. It will return a bunch > of data that may or may not include the operating system. That is why > the original poster was hoping someone would give him some direction on > a function that will extract the OS from the metadata that all of the > various systems out there can return. Also, problems like these are why > a company like BrowserHawk is in business. It's not an easy question to > answer. > > > - > > This transmission may contain information that is privileged, confidential > and/or exempt from disclosure under applicable law. If you are not the > intended recipient, you are hereby notified that any disclosure, copying, > distribution, or use of the information contained herein (including any > reliance thereon) is STRICTLY PROHIBITED. If you received this transmission > in error, please immediately contact the sender and destroy the material in > its entirety, whether in electronic or hard copy format. Thank you. A1. > > > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235053 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
Okay, I personally usualy use some combinations of cgi.user_agent, which do count on the cgi.user_agent string being correct, and not faked, like u can do in most browsers either through a plugin or nativly. So for instanct means your probably on a mac, etc. It would be cool if there is some kind of api to contact a user_agent database (I believe there are several online, and free) which then return more usable variables, like IsMac or IsIE. Regards, Mingo. Munson, Jacob wrote: >> >> >> >> >> >> >> >> >> >> >>Now, if you're not sufficiently advanced in CF development, >>I'd suggest >>asking for help with this one! Seriously Jonese, I'm sorry to >>be having >>fun with this at your expense, but you spent way more time >>looking for a >>function to do this than it would have taken for you to write >>a couple >>of lines of code and that's even if you only spent 10 minutes looking! >> >> > >I think you are kind of joking, and I do agree that the answer could >have been found if the poster poked about a bit, but I have to say that >your code will not return the operating system. It will return a bunch >of data that may or may not include the operating system. That is why >the original poster was hoping someone would give him some direction on >a function that will extract the OS from the metadata that all of the >various systems out there can return. Also, problems like these are why >a company like BrowserHawk is in business. It's not an easy question to >answer. > > >- > >This transmission may contain information that is privileged, confidential >and/or exempt from disclosure under applicable law. If you are not the >intended recipient, you are hereby notified that any disclosure, copying, >distribution, or use of the information contained herein (including any >reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in >error, please immediately contact the sender and destroy the material in its >entirety, whether in electronic or hard copy format. Thank you. A1. > > > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235039 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Determine Visitors OS
> > > > > > > > > > > Now, if you're not sufficiently advanced in CF development, > I'd suggest > asking for help with this one! Seriously Jonese, I'm sorry to > be having > fun with this at your expense, but you spent way more time > looking for a > function to do this than it would have taken for you to write > a couple > of lines of code and that's even if you only spent 10 minutes looking! I think you are kind of joking, and I do agree that the answer could have been found if the poster poked about a bit, but I have to say that your code will not return the operating system. It will return a bunch of data that may or may not include the operating system. That is why the original poster was hoping someone would give him some direction on a function that will extract the OS from the metadata that all of the various systems out there can return. Also, problems like these are why a company like BrowserHawk is in business. It's not an easy question to answer. - This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235036 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
LOL, yeah, I will be accepting royalties off of that code. I mean, I think I'm owed by everyone who uses that bit of genius and infinitely complex code for their own benefit. Would you expect me to just GIVE the code away for free??? And if you'd like even better code worth even higher royalties, how about this bit which will even set a default value if the variable is empty: Now, if you're not sufficiently advanced in CF development, I'd suggest asking for help with this one! Seriously Jonese, I'm sorry to be having fun with this at your expense, but you spent way more time looking for a function to do this than it would have taken for you to write a couple of lines of code and that's even if you only spent 10 minutes looking! --Ferg Mingo Hagen wrote: > Ken Ferguson wrote: > > >> Well, if you just need someone to write it for you... >> >> >> >> >> > > What sort of license is that under? can we use that? do we need to pay > you? how much? all these questions. > > M. > > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235032 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
Ken Ferguson wrote: >Well, if you just need someone to write it for you... > > > > What sort of license is that under? can we use that? do we need to pay you? how much? all these questions. M. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235024 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
Well, if you just need someone to write it for you... jonese wrote: > Yea i was just hoping to avoid writing the code myself if someone else > has already done it. > > jonese > > On 3/9/06, Dave Watts <[EMAIL PROTECTED]> wrote: > >>> Anyone have a function which will determine the OS of a >>> visitor to a website? >>> >>> I've already searched the usual suspects and couldn't come up >>> with anything. >>> >> You can usually determine the client operating system by examining >> CGI.HTTP_USER_AGENT, although the reliability of this information cannot be >> guaranteed. >> >> Dave Watts, CTO, Fig Leaf Software >> http://www.figleaf.com/ >> >> Fig Leaf Software provides the highest caliber vendor-authorized >> instruction at our training centers in Washington DC, Atlanta, >> Chicago, Baltimore, Northern Virginia, or on-site at your location. >> Visit http://training.figleaf.com/ for more information! >> >> >> > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235019 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Determine Visitors OS
You could use BrowserHawk if you don't mind paying for this. It will tell you what OS, along with TONS of other stuff about every client that hits your site. > -Original Message- > From: jonese [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 5:31 PM > To: CF-Talk > Subject: Re: Determine Visitors OS > > Yea i was just hoping to avoid writing the code myself if someone else > has already done it. [INFO] -- Access Manager: This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A2 ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235015 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Determine Visitors OS
I believe it is one of the cgi variables...I don't have my documentation in front of me to look it up, but I do believe that is the case. Eric -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Thursday, 09 March 2006 16:58 To: CF-Talk Subject: Determine Visitors OS Anyone have a function which will determine the OS of a visitor to a website? I've already searched the usual suspects and couldn't come up with anything. jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234969 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Determine Visitors OS
Yea i was just hoping to avoid writing the code myself if someone else has already done it. jonese On 3/9/06, Dave Watts <[EMAIL PROTECTED]> wrote: > > Anyone have a function which will determine the OS of a > > visitor to a website? > > > > I've already searched the usual suspects and couldn't come up > > with anything. > > You can usually determine the client operating system by examining > CGI.HTTP_USER_AGENT, although the reliability of this information cannot be > guaranteed. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234954 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Determine Visitors OS
> Anyone have a function which will determine the OS of a > visitor to a website? > > I've already searched the usual suspects and couldn't come up > with anything. You can usually determine the client operating system by examining CGI.HTTP_USER_AGENT, although the reliability of this information cannot be guaranteed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234940 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Determine Visitors OS
Anyone have a function which will determine the OS of a visitor to a website? I've already searched the usual suspects and couldn't come up with anything. jonese ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234938 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54